Merge pull request 'Use locale instead of two_letters_code for translation' (#139) from locale into main

Reviewed-on: #139
This commit is contained in:
KitaitiMakoto 2023-02-23 12:47:01 +00:00
commit bc2b9acfc4
3 changed files with 36 additions and 35 deletions

View file

@ -3,7 +3,7 @@ require "pathname"
BUILD_DIR = Pathname("build") BUILD_DIR = Pathname("build")
LOCALE_DIR = Pathname("trans") LOCALE_DIR = Pathname("trans")
TRANS_DIR = Pathname("translate") TRANS_DIR = Pathname("translate")
PSEUDO_LANG = "ach" PSEUDO_LANG = "ach-UG"
CROWDIN_SNIPPET = <<EOS CROWDIN_SNIPPET = <<EOS

View file

@ -27,7 +27,7 @@ files: [
# Where translations will be placed # Where translations will be placed
# e.g. "/resources/%two_letters_code%/%original_file_name%" # e.g. "/resources/%two_letters_code%/%original_file_name%"
# #
"translation" : "/trans/%two_letters_code%/%original_path%/%original_file_name%", "translation" : "/trans/%locale%/%original_path%/%original_file_name%",
# #
# Files or directories for ignore # Files or directories for ignore

View file

@ -1,34 +1,35 @@
--- ---
af: Afrikaans af-ZA: Afrikaans
ar: العربية ar-SA: العربية
ca: Català ca-ES: Català
cs: Česky cs-CZ: Česky
da: Dansk da-DK: Dansk
de: Deutsch de-DE: Deutsch
el: Ελληνικά el-GR: Ελληνικά
en: English en-US: English
eo: Esperanto eo-UY: Esperanto
es: Español es-ES: Español
fa: فارسی fa-IR: فارسی
fi: Suomi fi-FI: Suomi
fr: Français fr-FR: Français
gl: Galego gl-ES: Galego
he: עברית he-IL: עברית
hu: Magyar hu-HU: Magyar
it: Italiano it-IT: Italiano
ja: 日本語 ja-JP: 日本語
ko: 한국어 ko-KR: 한국어
nl: Nederlands nl-NL: Nederlands
'no': Norsk (bokmål) no-NO: Norsk (bokmål)
pl: Polski pl-PL: Polski
pt: Português pt-PT: Português
ro: Română ro-RO: Română
ru: Русский ru-RU: Русский
sat: ᱥᱟᱱᱛᱟᱲᱤ sat-IN: ᱥᱟᱱᱛᱟᱲᱤ
si: සිංහල si-LK: සිංහල
sr: Српски sr-SP: Српски
sv: Svenska sv-SE: Svenska
tr: Türkçe tr-TR: Türkçe
uk: Українська uk-UA: Українська
vi: Việtnam vi-VN: Việtnam
zh: 中文 zh-CN: 简体中文
zh-TW: 繁體中文