1
0
Fork 0

For #12759 - Keep a separate list of release locales.

master
Kainalu Hagiwara 2020-07-20 16:26:43 -07:00
parent b31564d5fc
commit 98d5ae6b89
2 changed files with 94 additions and 2 deletions

View File

@ -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:

View File

@ -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 = [