Frontend translations
Instructions to make contributions to Osmosis frontend translations.
Fork the Osmosis frontend repo and clone the fork locally https://github.com/osmosis-labs/osmosis-frontend/fork
Create a new branch for the new laguage
git checkout -b "Add Spanish Language"
- Copy the English langauge files to the new {lang}.js files. For example from inside the Osmosis repo:
cd packages/web/localizations/
cp en.json es.json
cp dayjs-locale-en.js dayjs-locale-es.js
- Edit the dropdown menu of the website in order to display the language by editing this file as seen here.
packages/web/stores/user-settings/language.tsx
- Test and Test Run Osmosis front-end locally and test the changes by running:
yarn install
yarn dev
- Commit the changes and submit a PR againts the upstream branch.
Note: Use the following PRs as an example: (Spanish, Turkish, French, Korean)