Add l10n project configuration for Pontoon and vendor (Fixes #7875) (#8092)

This commit is contained in:
Axel Hecht 2019-12-18 18:38:18 +01:00 коммит произвёл Alex Gibson
Родитель 9735c0c348
Коммит cfe4ab98b2
5 изменённых файлов: 204 добавлений и 0 удалений

120
l10n/configs/pontoon.toml Normal file
Просмотреть файл

@ -0,0 +1,120 @@
# All files translated by the community by at least some locales should
# be covered by the [[paths]] in this file.
basepath = ".."
locales = [
"ach",
"af",
"am",
"an",
"ar",
"ast",
"az",
"azz",
"be",
"bg",
"bn",
"br",
"bs",
"ca",
"cak",
"crh",
"cs",
"cy",
"da",
"de",
"dsb",
"el",
"en-CA",
"en-GB",
"eo",
"es-AR",
"es-CL",
"es-ES",
"es-MX",
"et",
"eu",
"fa",
"ff",
"fi",
"fr",
"fy-NL",
"ga-IE",
"gd",
"gl",
"gn",
"gu-IN",
"he",
"hi-IN",
"hr",
"hsb",
"hto",
"hu",
"hy-AM",
"ia",
"id",
"is",
"it",
"ja",
"ka",
"kab",
"kk",
"km",
"kn",
"ko",
"lij",
"lo",
"lt",
"ltg",
"lv",
"mk",
"ml",
"mr",
"ms",
"my",
"nb-NO",
"ne-NP",
"nl",
"nn-NO",
"nv",
"oc",
"pa-IN",
"pai",
"pbb",
"pl",
"pt-BR",
"pt-PT",
"qvi",
"rm",
"ro",
"ru",
"si",
"sk",
"sl",
"son",
"sq",
"sr",
"sv-SE",
"sw",
"ta",
"te",
"th",
"tl",
"tr",
"trs",
"uk",
"ur",
"uz",
"vi",
"wo",
"xh",
"zam",
"zh-CN",
"zh-TW",
"zu",
]
[[paths]]
reference = "en/**/*.ftl"
l10n = "{locale}/**/*.ftl"

Просмотреть файл

@ -0,0 +1,16 @@
# For locales with dedicated templates that don't go through
# the Fluent localization process by either vendor or pontoon,
# list the ftl file and the locales handled by the templates
# in [[paths]] sections here.
basepath = ".."
## Example:
# [[paths]]
# reference = "en/firefox/home.ftl"
# l10n = "{locale}/firefox/home.ftl"
# locales = [
# "de",
# "fr",
# ]

45
l10n/configs/vendor.toml Normal file
Просмотреть файл

@ -0,0 +1,45 @@
# All content handled by the vendor or Mozilla staff should
# be covered by the [[paths]] in this file, with the relevant locales.
basepath = ".."
locales = [
"cs",
"de",
"es-AR",
"es-ES",
"es-MX",
"fr",
"hi-IN",
"hu",
"id",
"it",
"ja",
"ms",
"nl",
"pl",
"pt-BR",
"ru",
"tr",
"vi",
"zh-CN",
"zh-TW",
]
## Examples:
# [[paths]]
# reference = "en/firefox/*.ftl"
# l10n = "{locale}/firefox/*.ftl"
# [[paths]]
# reference = "en/firefox/*.ftl"
# l10n = "{locale}/firefox/*.ftl"
# locales = [
# "de",
# "fr",
# "ru",
# ]
[[paths]]
reference = "en/mozorg/mission.ftl"
l10n = "{locale}/mozorg/mission.ftl"

13
l10n/l10n-pontoon.toml Normal file
Просмотреть файл

@ -0,0 +1,13 @@
# Entrypoint for community localization.
# Edits to add content for l10n should be made in configs/pontoon.toml
basepath = "."
[[includes]]
path = "configs/pontoon.toml"
[[excludes]]
path = "configs/vendor.toml"
[[excludes]]
path = "configs/special-templates.toml"

10
l10n/l10n-vendor.toml Normal file
Просмотреть файл

@ -0,0 +1,10 @@
# Entrypoint for vendor and staff localization.
# Edits to add content for l10n should be made in configs/vendor.toml
basepath = "."
[[includes]]
path = "configs/vendor.toml"
[[excludes]]
path = "configs/special-templates.toml"