Commit efb93929 authored by Justin Domingue's avatar Justin Domingue Committed by GitHub

update CONTRIBUTING.md with new folder structure

parent 69cc728d
...@@ -19,12 +19,12 @@ Uniswap interface uses [LinguiJS](https://lingui.js.org/) to manage locales and ...@@ -19,12 +19,12 @@ Uniswap interface uses [LinguiJS](https://lingui.js.org/) to manage locales and
- Follow instructions in [README.md](https://github.com/Uniswap/uniswap-interface/blob/main/README.md) for instructions on running the app locally to clone Uniswap interface locally - Follow instructions in [README.md](https://github.com/Uniswap/uniswap-interface/blob/main/README.md) for instructions on running the app locally to clone Uniswap interface locally
- Add locale to locales array in [lingui.config.js](https://github.com/Uniswap/uniswap-interface/blob/main/lingui.config.js#L14) - Add locale to locales array in [lingui.config.js](https://github.com/Uniswap/uniswap-interface/blob/main/lingui.config.js#L14)
- Add locale to locales array in [i18n.tsx](https://github.com/Uniswap/uniswap-interface/blob/main/src/i18n.tsx#L7) - Add locale to locales array in [i18n.tsx](https://github.com/Uniswap/uniswap-interface/blob/main/src/i18n.tsx#L7)
- Run `yarn i18n:extract` to generate messages.po inside [src/locales/{locale}](https://github.com/Uniswap/uniswap-interface/tree/main/src/locales) - Run `yarn i18n:extract` to generate [src/locales/{locale}.po](https://github.com/Uniswap/uniswap-interface/tree/main/src/locales)
- Continue to [Existing Translation](#existing-translation) below - Continue to [Existing Translation](#existing-translation) below
## Existing Translation ## Existing Translation
- Edit [src/locales](https://github.com/Uniswap/uniswap-interface/tree/main/src/locales)/{locale}/messages.po either manually or with a PO editor (see [Editing PO Files](https://www.gnu.org/software/trans-coord/manual/web-trans/html_node/PO-Editors.html)). - Edit [src/locales](https://github.com/Uniswap/uniswap-interface/tree/main/src/locales)/{locale}.po either manually or with a PO editor (see [Editing PO Files](https://www.gnu.org/software/trans-coord/manual/web-trans/html_node/PO-Editors.html)).
- Run `yarn i18n:compile` to generate src/locales/{locale}/messages.js - Run `yarn i18n:compile` to generate src/locales/{locale}.js
- Run `yarn start` to start a server locally to verify changes - Run `yarn start` to start a server locally to verify changes
- Submit PR against main - Submit PR against main
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment