Comments (4)
i try change crowdin_config_RFC-3066.yml
and add
languages_mapping: locale_with_underscore: # crowdin_language_code: local_name en: en en-US: en_US
without any effect
from crowdin-cli-py.
Hi there! I've recreated and tested it with your configs. During that I haven't spotted
Warning: Downloaded translations do not match current project configuration. Some of the resulted files will be omitted.
download works perfectly for both en and en_US.
There is some warning in project settings page from crowdin but I don't know if it has any effects:
If incorrect variables are used for resulting file names, during the export some languages might be overwritten by other languages which share the same code. For example, if %two_letters_code% variable is used and there are Portuguese and Portuguese, Brazilian target languages in the project, exported translations will be placed in the same directory — pt. We strongly recommend to switch to another allowed variables to prevent any issues whilst the project build.
I was using crowdin-cli-py v. 0.95.2, Russian as source language, "English" and "English, United States" as target languages.
from crowdin-cli-py.
Oh, my bad it's not working correctly. I tasted your configs on different projects and did see a warning you have mentioned. This is what I figured out:
if you are using %two_letters_code% and make "upload sources && upload translation" than all download translations will be placed on "en.lproj" even if you use 'another config with %locale_with_underscore% ' or 'download -l en-US' . Its because of that warning from crowdin.
To make download command put translations in "en_US.lproj directory" you need use a config with '%locale_with_underscore%' than make "upload sources && upload translation", it will overwrite project settings on crodwin, and allow you after 'projects is built again' download en_US translations correctly.
from crowdin-cli-py.
thanks for quick reply
i merge two different config to one
with %osx_code% placeholder
api_key: XXX base_path: XXX files: - {source: /lang/ru.lproj/common/datapack.po, translation: /lang/%osx_code%/common/%original_file_name%} - {source: /lang/ru.lproj/common/dialogs.po, translation: /lang/%osx_code%/common/%original_file_name%} project_identifier: melesta-coffee-alconost
and use
en.lproj
en_US.lproj
for language catalog directory names
and use following workflow
crowdin-cli-py -c crowdin_config.yml upload sources crowdin-cli-py -c crowdin_config.yml upload translations -l en-US crowdin-cli-py -c crowdin_config.yml upload translations -l en
crowdin-cli-py -c crowdin_config.yml upload translations -l en crowdin-cli-py -c crowdin_config.yml upload translations -l en-US
from crowdin-cli-py.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crowdin-cli-py.