Skip to content

Commit

Permalink
crowdin: switch to locale_with_underscore
Browse files Browse the repository at this point in the history
The advice from Crowdin is to use locale_with_underscore and manually
put in the exceptions for locales that should just be two letters. This
helps prevent accidents where adding a locale stomps on an existing one.

[skip ci]
  • Loading branch information
fhunleth committed Jun 26, 2019
1 parent e2da443 commit 6041709
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ files: [
# where translations live
# e.g. "/resources/%two_letters_code%/%original_file_name%"
#
"translation" : "/apps/nerves_hub_www/priv/gettext/%two_letters_code%/**/%original_file_name%",
"translation" : "/apps/nerves_hub_www/priv/gettext/%locale_with_underscore%/**/%original_file_name%",

#
# files or directories for ignore
Expand Down Expand Up @@ -107,14 +107,31 @@ files: [
# Often software projects have custom names for locale directories. crowdin-cli allows you to map your own languages to be understandable by Crowdin.
#
"languages_mapping" : {
"two_letters_code" : {
"zh-CN" : "zh_CH",
"zh-TW" : "zh_TW",
"pt-PT" : "pt_PT",
"pt-BR" : "pt_BR",
"es-ES" : "es_ES",
"sv-SE" : "sv_SE"
}
"locale_with_underscore" : {
"af": "af",
"ar": "ar",
"ca": "ca",
"cs": "cs",
"da": "da",
"nl": "nl",
"fi": "fi",
"fr": "fr",
"de": "de",
"el": "el",
"he": "he",
"hu": "hu",
"it": "it",
"ja": "ja",
"ko": "ko",
"no": "no",
"pl": "pl",
"ro": "ro",
"ru": "ru",
"sr": "sr",
"tr": "tr",
"uk": "uk",
"vi": "vi"
}
},

#
Expand Down

0 comments on commit 6041709

Please sign in to comment.