diff --git a/developer_docs/translations.md b/developer_docs/translations.md index 584b9137d8..2e624e64c2 100644 --- a/developer_docs/translations.md +++ b/developer_docs/translations.md @@ -10,10 +10,47 @@ In order to simplify the translations process the following rules of thumb were ## Technical Part * There is only one file to translate all the texts in any specific language, which is located under the directory, in respective locale [subdirectory](https://github.com/processing/p5.js-web-editor/tree/develop/translations/locales) -* The new language code must be added to [client/i18n.js](https://github.com/processing/p5.js-web-editor/blob/develop/client/i18n.js#L7) -* New languages will need to be selected using a dropdown in Nav component, specifically in function [renderLanguageMenu.](https://github.com/processing/p5.js-web-editor/blob/develop/client/components/Nav.jsx#L550) +* The new language code must be added to [client/i18n.js](https://github.com/processing/p5.js-web-editor/blob/develop/client/i18n.js#L8) +* New languages will need to be selected using a dropdown in Nav component, specifically in function [renderLanguageMenu.](https://github.com/processing/p5.js-web-editor/blob/develop/client/components/Nav.jsx#L611) * Need to add `TRANSLATIONS_ENABLED=true` to `.env` to activate dropdown for the languages. +#### Nav.js +Need to add the following code to add a new language as a dropdown menu. +```js +