-
Notifications
You must be signed in to change notification settings - Fork 71
Custom Locales
LWC supports a wide selection of default locales (languages), which you can view here.
If the locales provided are not sufficient enough for the needs of your server, it is quite easy to create your own. Just make a file called lwc_LOCALE.properties
in the plugins/LWC/locale
folder, where LOCALE
would be the name of your locale.
Open this file in your favourite text editor. It will be empty. You may want to copy the contents of one of the default locales, so that you do not have to start from scratch. Then, you can modify any message(s), and save the file.
Finally, make sure you change the core.locale
setting in the core.yml
file to match your LOCALE
. Yes, it's that easy!
Note: Please consider making a pull request and merging your changes if you are either improving an existing locale, or adding a new one for a language that is not currently supported by default.