Skip to main content

Frontend translations

Instructions to make contributions to Osmosis frontend translations.

  1. Fork the Osmosis frontend repo and clone the fork locally https://github.com/osmosis-labs/osmosis-frontend/fork

  2. Create a new branch for the new laguage

git checkout -b "Add Spanish Language"
  1. 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
  1. 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
  1. Test and Test Run Osmosis front-end locally and test the changes by running:
yarn install
yarn dev
  1. Commit the changes and submit a PR againts the upstream branch.

Note: Use the following PRs as an example: (Spanish, Turkish, French, Korean)