Improve localization features #5
Labels
enhancement
New feature or request
help wanted
Open for community contribution! Be sure to comment on the issue to check status
Map2d currently has some localization features.
src/js/copy.json
is thought of as a localization device that contains all translations. It contains the interface copy text as well as dictionaries for recurrent words in the data served by the server. Components default to English (en-US
), but can allow toggling between different languages.Additionally,
src/js/es-MX.json
is an additional file that contains sets of property labels localized in a particular language (in this case,es-MX
, Mexican Spanish). Note that this file is named exactly like the language codes available incopy.json
.Toolbar.jsx
should contain a button that switches between the available languages in the Redux store, which align coincide with the languages available incopy.json
. Note that in the Redux store (src/store/initial.js
) you'll find the language code inapp.language
, which defaults toen-US
.The text was updated successfully, but these errors were encountered: