diff --git a/automation/taskcluster/l10n/locales.py b/automation/taskcluster/l10n/locales.py index 5e2e80fe1..80c87bc2c 100644 --- a/automation/taskcluster/l10n/locales.py +++ b/automation/taskcluster/l10n/locales.py @@ -8,7 +8,7 @@ from __future__ import absolute_import, print_function, unicode_literals import re -OPEN_LOCALES = "locales = [" +OPEN_LOCALES = "release_locales = [" CLOSE_LOCALES = "]" def trim_to_locale(str): @@ -42,7 +42,7 @@ def get_release_locales(): for line in file: if line == OPEN_LOCALES: locales_opened = True - elif line == CLOSE_LOCALES: + elif line == CLOSE_LOCALES and locales_opened == True: locales_closed = True break elif locales_opened: diff --git a/l10n.toml b/l10n.toml index 208d698a0..bb0d019f2 100644 --- a/l10n.toml +++ b/l10n.toml @@ -1,6 +1,7 @@ basepath = "." +# Locales that should be present in non-release builds and on Pontoon locales = [ "an", "ar", @@ -94,6 +95,97 @@ locales = [ "zh-TW", ] +# Locales that should be present in release builds +# Locales that are at 70% or higher completion on https://pontoon.mozilla.org/projects/android-l10n/ +# should be in this list +release_locales = [ + "an", + "ar", + "ast", + "az", + "be", + "bn", + "br", + "bs", + "ca", + "cak", + "co", + "cs", + "cy", + "da", + "de", + "dsb", + "el", + "en-CA", + "en-GB", + "eo", + "es", + "es-AR", + "es-CL", + "es-ES", + "es-MX", + "et", + "eu", + "fa", + "ff", + "fi", + "fr", + "fy-NL", + "ga-IE", + "gd", + "gn", + "gu-IN", + "he", + "hi-IN", + "hr", + "hsb", + "hu", + "hy-AM", + "id", + "is", + "it", + "ja", + "ka", + "kab", + "kk", + "kn", + "ko", + "lij", + "lo", + "lt", + "ml", + "mr", + "my", + "nb-NO", + "nl", + "nn-NO", + "oc", + "pa-IN", + "pl", + "pt-BR", + "pt-PT", + "rm", + "ro", + "ru", + "sk", + "sl", + "sq", + "sr", + "su", + "sv-SE", + "ta", + "te", + "th", + "tr", + "trs", + "uk", + "ur", + "vec", + "vi", + "zh-CN", + "zh-TW", +] + # Expose the following branches to localization # Changes to this list should be announced to the l10n team ahead of time. branches = [