1# Copyright 2015 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# This is a .pyl, or "Python Literal", file. You can treat it just like a
6# .json file, with the following exceptions:
7# * all keys must be quoted (use single quotes, please);
8# * comments are allowed, using '#' syntax; and
9# * trailing commas are allowed.
10#
11# Specifies which grd files should be translated and into which languages they
12# should be translated. Used by the internal translation process.
13{
14  "desktop_grds": {
15    "languages": [
16      "af", "am", "ar", "as", "az", "be", "bg", "bn", "bs", "ca", "cs", "da",
17      "de", "el", "en-GB", "es", "es-419", "et", "eu", "fa", "fi", "fil", "fr",
18      "fr-CA", "gl", "gu", "hi", "hr", "hu", "hy", "id", "is", "it", "iw", "ja",
19      "ka", "kk", "km", "kn", "ko", "ky", "lo", "lt", "lv", "mk", "ml", "mn",
20      "mr", "ms", "my", "ne", "nl", "no", "or", "pa", "pl", "pt-BR", "pt-PT",
21      "ro", "ru", "si", "sk", "sl", "sq", "sr", "sr-Latn", "sv", "sw", "ta",
22      "te", "th", "tr", "uk", "ur", "uz", "vi", "zh-CN", "zh-HK", "zh-TW", "zu",
23    ],
24    "files": [
25      "android_webview/java/strings/android_webview_strings.grd",
26      "android_webview/ui/aw_strings.grd",
27      "ash/ash_strings.grd",
28      "ash/shortcut_viewer/shortcut_viewer_strings.grd",
29      "chrome/android/features/vr/java/strings/android_chrome_vr_strings.grd",
30      "chrome/android/features/keyboard_accessory/internal/java/strings/android_keyboard_accessory_strings.grd",
31      "chrome/android/features/autofill_assistant/java/strings/android_chrome_autofill_assistant_strings.grd",
32      "chrome/android/features/start_surface/internal/java/strings/android_chrome_start_surface_strings.grd",
33      "chrome/android/features/tab_ui/java/strings/android_chrome_tab_ui_strings.grd",
34      "chrome/android/webapk/strings/android_webapk_strings.grd",
35      "chrome/app/chromium_strings.grd",
36      "chrome/app/generated_resources.grd",
37      "chrome/app/google_chrome_strings.grd",
38      "chrome/browser/resources/chromeos/accessibility/strings/accessibility_strings.grd",
39      "chrome/browser/touch_to_fill/android/internal/java/strings/android_touch_to_fill_strings.grd",
40      "chrome/browser/password_check/android/internal/java/strings/android_password_check_strings.grd",
41      "chrome/browser/ui/android/strings/android_chrome_strings.grd",
42      "chrome/credential_provider/gaiacp/gaia_resources.grd",
43      "chromeos/chromeos_strings.grd",
44      "chromeos/components/camera_app_ui/resources/strings/camera_strings.grd",
45      "components/autofill/android/java/strings/autofill_strings.grd",
46      "components/browser_ui/strings/android/browser_ui_strings.grd",
47      "components/components_chromium_strings.grd",
48      "components/components_google_chrome_strings.grd",
49      "components/components_strings.grd",
50      "components/embedder_support/android/java/strings/web_contents_delegate_android_strings.grd",
51      "components/javascript_dialogs/android/javascript_dialogs_android_strings.grd",
52      "components/media_router/browser/android/java/strings/android_chrome_media_router_strings.grd",
53      "components/permissions/android/permissions_android_strings.grd",
54      "content/public/android/java/strings/android_content_strings.grd",
55      "device/bluetooth/bluetooth_strings.grd",
56      "device/fido/fido_strings.grd",
57      "extensions/strings/extensions_strings.grd",
58      "ios/chrome/app/strings/ios_chromium_strings.grd",
59      "ios/chrome/app/strings/ios_google_chrome_strings.grd",
60      "ios/chrome/app/strings/ios_strings.grd",
61      "ios/chrome/credential_provider_extension/strings/ios_credential_provider_extension_strings.grd",
62      "ios/chrome/content_widget_extension/strings/ios_content_widget_extension_chromium_strings.grd",
63      "ios/chrome/content_widget_extension/strings/ios_content_widget_extension_google_chrome_strings.grd",
64      "ios/chrome/search_widget_extension/strings/ios_search_widget_extension_strings.grd",
65      "ios/chrome/search_widget_extension/strings/ios_search_widget_extension_chromium_strings.grd",
66      "ios/chrome/search_widget_extension/strings/ios_search_widget_extension_google_chrome_strings.grd",
67      "ios/chrome/share_extension/strings/ios_share_extension_strings.grd",
68      "ios/chrome/widget_kit_extension/strings/ios_widget_kit_extension_strings.grd",
69      "remoting/resources/remoting_strings.grd",
70      "services/services_strings.grd",
71      "third_party/libaddressinput/chromium/address_input_strings.grd",
72      "third_party/blink/public/strings/blink_strings.grd",
73      "ui/accessibility/extensions/strings/accessibility_extensions_strings.grd",
74      "ui/android/java/strings/android_ui_strings.grd",
75      "ui/chromeos/ui_chromeos_strings.grd",
76      "ui/strings/ui_strings.grd",
77      "weblayer/browser/java/weblayer_strings.grd",
78    ],
79  },
80  # The policy_templates are translated only into a subset of the languages.
81  "policy_templates_grds": {
82    "languages": [
83      "de", "es", "es-419", "fr", "id", "it", "ja", "ko", "nl", "pt-BR", "ru",
84      "th", "tr", "uk", "vi", "zh-CN", "zh-TW",
85    ],
86    "files": [
87      "components/policy/resources/policy_templates.grd",
88    ],
89  },
90  # Grd files that contain <message> or <translations> elements, but that
91  # shouldn't be translated as part of the normal translation process. Each
92  # entry needs an explanation for why it shouldn't be translated.
93  "untranslated_grds": {
94    "chrome/app/resources/locale_settings.grd": "Not UI strings; localized separately",
95    "chrome/app/resources/locale_settings_chromiumos.grd": "Not UI strings; localized separately",
96    "chrome/app/resources/locale_settings_google_chromeos.grd": "Not UI strings; localized separately",
97    "chrome/app/resources/locale_settings_linux.grd": "Not UI strings; localized separately",
98    "chrome/app/resources/locale_settings_mac.grd": "Not UI strings; localized separately",
99    "chrome/app/resources/locale_settings_win.grd": "Not UI strings; localized separately",
100    "chromecast/app/resources/chromecast_settings.grd": "Not UI strings; localized separately",
101    "cloud_print/virtual_driver/win/install/virtual_driver_setup_resources.grd": "Separate release process",
102    "components/components_locale_settings.grd": "Not UI strings; localized separately",
103    "components/omnibox/resources/omnibox_resources.grd": "Not UI strings; localized separately",
104    "tools/grit/grit/testdata/allowlist_resources.grd": "Test data",
105    "tools/grit/grit/testdata/allowlist_strings.grd": "Test data",
106    "tools/grit/grit/testdata/buildinfo.grd": "Test data",
107    "tools/grit/grit/testdata/chrome/app/generated_resources.grd": "Test data",
108    "tools/grit/grit/testdata/substitute.grd": "Test data",
109    "tools/grit/grit/testdata/substitute_no_ids.grd": "Test data",
110    "tools/grit/grit/testdata/substitute_tmpl.grd": "Test data",
111    "tools/translation/testdata/not_translated.grd": "Test data",
112    "tools/translation/testdata/test.grd": "Test data",
113    "tools/translation/testdata/unlisted.grd": "Test data",
114    "ui/base/test/ui_base_test_resources.grd": "Test data",
115    "ui/strings/app_locale_settings.grd": "Not UI strings; localized separately",
116    "ui/views/examples/views_examples_resources.grd": "Test data",
117  },
118  # Internal grds that contain parts not available publicly and thus should
119  # not be checked by translation script.
120  "internal_grds": [
121    # Test grd that contains a part file that doesn't exist.
122    "tools/translation/testdata/internal.grd",
123  ],
124}
125