-
Notifications
You must be signed in to change notification settings - Fork 1
FBR localization
Since version 2.0, FBR has multiple language support. Each FBR translation into a language is a JSON file, which is located in conf/i18n/
.
To change the current language of your FBR installation, edit the common.json
file. Change the language
entry, entering the ISO 639-1 code (2 letters) of the desired language, and change the languageFile
parameter, entering the path to the JSON file corresponding to the language. Learn more about FBR configuration parameters in FBR settings.
In order to have a new translation displayed in your browser, you may need to clear your cache.
Adding a new translation to FBR is as easy as creating a new JSON file. If you want to translate FBR into your language, see the steps below:
-
Make a copy of an existing translation JSON file (for example, the
conf/i18n/en.json
file), and rename it with the ISO 639-1 code for your language (for example, for French, the file name should befr.json
). -
Edit the renamed file, translating the strings to your language:
-
Edit the renamed file, translating the strings to your language. The JSON file of a translation contains several entries with names corresponding to the FBR modules. Each of these entries is an object, whose properties identify an expression and its values are the expression translated into a specific language.
For example, suppose you have a dummy module called
directions
, this module has the translation keys (properties)go_left
andgo_right
. In English translation, the JSON file would look something like this:"directions": { "go_left": "Go left", "go_right": "Go right" }
If you translated this file into Portuguese, for example, it would look like this:
"directions": { "go_left": "Ir para a esquerda", "go_right": "Ir para a direita" }
-
-
Save the translated file.
-
Change the default language by editing the
language
andlanguageFile
entries inconf/common.json
(optional).
We would love to receive new translations for FBR. If you want to send us a new FBR translation, open an issue with the title Submission of new translation: <subitted language>
. Please note that by submitting new translation files, you agree that we include them in FBR under the terms of the MIT license. Thank you!