You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/customizing-the-appearance/proc-overriding-translations.adoc
+31-11Lines changed: 31 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,14 @@
2
2
3
3
[id="prov-overriding-translations_{context}"]
4
4
= Overriding translations
5
-
In {product-very-short} 1.8, English and French are the supported languages. You can implement translations for other languages by using a JSON file to override the existing translation strings, and by updating the `i18n` section of your `{my-app-config-file}` configuration file to include the JSON translation override file.
5
+
//In {product-very-short} 1.8, English and French are enabled by default. You can implement translations for other languages by using a JSON file to override the existing translation strings, and by updating the `i18n` section of your `{my-app-config-file}` configuration file to include the JSON translation override file.
6
+
7
+
//In {product-very-short} 1.8, English and French are enabled by default. You can implement translations for other languages by adding the language translation strings to a file that overrides the existing translation strings. You must also update the `i18n` section of your `{my-app-config-file}` configuration file to add the new `locale` and your translation override file.
8
+
9
+
//In {product-very-short} 1.8, English and French are enabled by default. You can add a translation strings file to your {product-short} deployment that you can use to override the default translation strings, or to implement translations for other languages.
10
+
11
+
In {product-very-short} 1.8, you can override plugin translation strings without modifying the plugin source code.
12
+
6
13
7
14
.Prerequisites
8
15
* You have enabled localization in your {product-very-short} application.
@@ -11,35 +18,34 @@ In {product-very-short} 1.8, English and French are the supported languages. You
11
18
// This feature is not being included in 1.8
12
19
// . In the top user menu, go to *Settings* > *General*.
13
20
// . Click on the download link in the *Translations* panel to download the default English translation strings.
14
-
. Create the JSON file containing all your translation as shown in the following example:
21
+
. Create a translation stings file containing all your translation as shown in the following example:
15
22
+
16
23
[id=i18n-enable]
17
24
.`allTranslations.json` fragment with translation string overrides
18
25
[source,json]
19
26
----
20
27
{
21
28
"plugin.global-floating-action-button": {
29
+
"en": {
30
+
"fab.quay.label": "QUAY EN JSON",
31
+
"fab.rbac.label": "RBAC EN JSON",
32
+
"fab.rbac.tooltip": "RBAC EN tooltip JSON"
33
+
},
22
34
"fr": {
23
35
"fab.quay.label": "QUAY French JSON",
24
36
"fab.quay.tooltip": "QUAY french tooltip JSON",
25
37
"fab.rbac.label": "RBAC French JSON",
26
38
"fab.rbac.tooltip": "RBAC french tooltip JSON"
27
-
},
28
-
"en": {
29
-
"fab.quay.label": "QUAY EN JSON",
30
-
"fab.rbac.label": "RBAC EN JSON",
31
-
"fab.rbac.tooltip": "RBAC EN tooltip JSON"
32
39
}
33
40
},
34
41
"plugin.global-header": {
35
-
"fr": {
36
-
"applicationLauncher.developerHub": "Developer Hub French JSON"
37
-
},
38
42
"en": {
39
43
"applicationLauncher.developerHub": "Developer Hub EN JSON"
44
+
},
45
+
"fr": {
46
+
"applicationLauncher.developerHub": "Developer Hub French JSON"
40
47
}
41
48
}
42
-
43
49
}
44
50
----
45
51
. Log in to your cluster and create a config map for your translations override strings:
0 commit comments