From 5d474d6fe8aa058cd5dc30f93655c36b5c284009 Mon Sep 17 00:00:00 2001 From: zarzet Date: Thu, 4 Jun 2026 20:15:23 +0700 Subject: [PATCH] =?UTF-8?q?=EF=BB=BFfix(l10n):=20correct=20crowdin=20langu?= =?UTF-8?q?age=20mapping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Map placeholders to the project's actual Crowdin language ids and drop the bogus bare keys (es, pt, zh) that aren't real Crowdin codes and broke crowdin-cli config validation. Add Arabic (ar) mapped to app_ar.arb so future syncs use underscore filenames instead of hyphenated ones (e.g. app_ar-SA.arb) that break Flutter gen-l10n. --- crowdin.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crowdin.yml b/crowdin.yml index 91aeac6c..e1986a36 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -3,9 +3,11 @@ files: translation: /lib/l10n/arb/app_%locale%.arb languages_mapping: locale: - # Short codes for single-variant languages + # Keys MUST be the project's Crowdin language ids; values are the + # %locale% suffix used in app_%locale%.arb (underscores so Flutter + # gen-l10n parses them — hyphenated filenames break gen-l10n). + ar: ar de: de - es: es es-ES: es_ES fr: fr hi: hi @@ -13,12 +15,9 @@ files: ja: ja ko: ko nl: nl - pt: pt pt-PT: pt_PT ru: ru tr: tr uk: uk - zh: zh - # Full codes for Chinese variants zh-CN: zh_CN zh-TW: zh_TW