1# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# Android doesn't ship all locales in order to save space (but webview does).
6# http://crbug.com/369218
7if (is_android) {
8  android_chrome_omitted_locales = [
9    "bn",
10    "et",
11    "gu",
12    "kn",
13    "ml",
14    "mr",
15    "ms",
16    "ta",
17    "te",
18  ]
19}
20
21# Chrome on iOS only ships with a subset of the locales supported by other
22# version of Chrome as the corresponding locales are not supported by the
23# operating system (but for simplicity, the corresponding .pak files are
24# still generated).
25if (is_ios) {
26  ios_unsupported_locales = [
27    "am",
28    "bn",
29    "et",
30    "fil",
31    "gu",
32    "kn",
33    "lv",
34    "ml",
35    "mr",
36    "sl",
37    "sw",
38    "ta",
39    "te",
40  ]
41}
42
43# Note: keep in sync with below.
44locales = [
45  "am",
46  "ar",
47  "bg",
48  "bn",
49  "ca",
50  "cs",
51  "da",
52  "de",
53  "el",
54  "en-GB",
55  "en-US",
56  "es",
57  "et",
58  "fa",
59  "fi",
60  "fil",
61  "fr",
62  "gu",
63  "he",
64  "hi",
65  "hr",
66  "hu",
67  "id",
68  "it",
69  "ja",
70  "kn",
71  "ko",
72  "lt",
73  "lv",
74  "ml",
75  "mr",
76  "ms",
77  "nb",
78  "nl",
79  "pl",
80  "pt-PT",
81  "ro",
82  "ru",
83  "sk",
84  "sl",
85  "sr",
86  "sv",
87  "sw",
88  "ta",
89  "te",
90  "th",
91  "tr",
92  "uk",
93  "vi",
94  "zh-CN",
95  "zh-TW",
96]
97
98# Chrome on iOS uses different names for "es-419" and "pt-BR" (called
99# respectively "es-MX" and "pt" on iOS).
100if (!is_ios) {
101  locales += [
102    "es-419",
103    "pt-BR",
104  ]
105} else {
106  locales += [
107    "es-MX",
108    "pt",
109  ]
110
111  ios_packed_locales = locales - ios_unsupported_locales
112}
113
114locales_with_fake_bidi = locales + [ "fake-bidi" ]
115
116# Same as the locales list but in the format Mac expects for output files:
117# it uses underscores instead of hyphens, and "en" instead of "en-US".
118locales_as_mac_outputs = [
119  "am",
120  "ar",
121  "bg",
122  "bn",
123  "ca",
124  "cs",
125  "da",
126  "de",
127  "el",
128  "en_GB",
129  "en",
130  "es",
131  "et",
132  "fa",
133  "fi",
134  "fil",
135  "fr",
136  "gu",
137  "he",
138  "hi",
139  "hr",
140  "hu",
141  "id",
142  "it",
143  "ja",
144  "kn",
145  "ko",
146  "lt",
147  "lv",
148  "ml",
149  "mr",
150  "ms",
151  "nb",
152  "nl",
153  "pl",
154  "pt_PT",
155  "ro",
156  "ru",
157  "sk",
158  "sl",
159  "sr",
160  "sv",
161  "sw",
162  "ta",
163  "te",
164  "th",
165  "tr",
166  "uk",
167  "vi",
168  "zh_CN",
169  "zh_TW",
170]
171
172# Chrome on iOS uses different names for "es-419" and "pt-BR" (called
173# respectively "es-MX" and "pt" on iOS).
174if (!is_ios) {
175  locales_as_mac_outputs += [
176    "es_419",
177    "pt_BR",
178  ]
179} else {
180  locales_as_mac_outputs += [
181    "es_MX",
182    "pt",
183  ]
184
185  ios_packed_locales_as_mac_outputs =
186      locales_as_mac_outputs - ios_unsupported_locales
187}
188