leveraging-copy-tmcommand. Depending on how many strings you have and precision you want you can use match based on text unit ids some like
mojito leveraging-copy-tm -m TUIDS --tuids-mapping "1001:2001;1002:2002"or a little bit looser you can provide just source/target repository (and asset) and match by content something like
mojito leveraging-copy-tm -m MD5 -s repo -t repopotentially limiting to some text unit names with
-m TUIDSand providing the exact mapping
--push-type NO_DELETEthat can be used but you have to have multiple asset(files) if the file has the same name it will override it. Can you share the error you get when trying to copy?
- Processing locale: en-US
Asset with path [string_ja-JP.properties] was not found in repo [Moneclicks]
hey guys, I'm new to mojito and I'm currently trying to import my existing translations (structured JSON) named 'de-DE.json' and 'en-GB.json', but I don't get my head around how to import those...
- Importing file: /home/user/work/tmp/ngxtranslate/src/assets/i18n/en_de-DE.json No asset for file [/home/user/work/tmp/ngxtranslate/src/assets/i18n/en.json] into repo [CT]
I'm probably missing just a small flag or something, but I can't figure out:
mojito import -r CT -ft JSON -sl en-GB
mojito_1 | 2020-11-26 21:05:16.094 INFO 1 --- [ost-startStop-1] o.hibernate.tool.hbm2ddl.TableMetadata : HHH000126: Indexes: [i__users__username, fk__user__user__id, primary] mojito_1 | 2020-11-26 21:05:16.107 ERROR 1 --- [ost-startStop-1] org.hibernate.tool.hbm2ddl.SchemaUpdate : HHH000388: Unsuccessful: create index I__TM_TEXT_UNIT__NAME on tm_text_unit (name) mojito_1 | 2020-11-26 21:05:16.108 ERROR 1 --- [ost-startStop-1] org.hibernate.tool.hbm2ddl.SchemaUpdate : BLOB/TEXT column 'name' used in key specification without a key length mojito_1 | 2020-11-26 21:05:16.110 ERROR 1 --- [ost-startStop-1] org.hibernate.tool.hbm2ddl.SchemaUpdate : HHH000388: Unsuccessful: create index I__TM_TEXT_UNIT__PLURAL_FORM_OTHER on tm_text_unit (plural_form_other) mojito_1 | 2020-11-26 21:05:16.111 ERROR 1 --- [ost-startStop-1] org.hibernate.tool.hbm2ddl.SchemaUpdate : BLOB/TEXT column 'plural_form_other' used in key specification without a key length
ngframework.security.web.access.intercept.FilterSecurityInterceptor@17a88f61] mojito_1 | 2020-11-26 21:05:24.911 INFO 1 --- [ main] o.s.jdbc.datasource.init.ScriptUtils : Executing SQL script from class path resource [db/hsql/data.sql] mojito_1 | 2020-11-26 21:05:24.968 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Stopping service Tomcat mojito_1 | 2020-11-26 21:05:24.998 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application startup failed mojito_1 | mojito_1 | org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of class path resource [db/hsql/data.sql]: insert into locale (id, bcp47_tag) values (157, 'af-ZA'); nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '157' for key 'PRIMARY'