-
-
Notifications
You must be signed in to change notification settings - Fork 168
Contribute on translations
Bolt uses Symfony's translations layer. If you'd like to help us keep the different translations up to date, or perhaps even add a new one, you're more than welcome. There are a number of ways you can update a translation:
Add the language code to locales:
in config/packages/translation.yaml
:
translation:
locales: ['en', 'nl', 'es', 'fr', 'de', 'pl', 'it', 'pt_BR']
The term locale refers roughly to the user's language and country. It can be any string that your application uses to manage translations and other format differences (e.g. currency format).
You can use either an ISO 639-1 language code, like nl
, or an ISO 639-1 language code, an underscore (_), then the ISO 3166-1 alpha-2 country code, for example fr_FR
for French/France. For more information, see the Symfony docs.
Add the same new locale to config/services.yaml
parameters:
…
app_locales: en|nl|es|fr|de|pl|it|pt_BR
Note: Before Bolt 4 stable is released, we'll make it so you'll only need to add it in one location.