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 language

git checkout -b "Add Spanish Language"
  1. Copy the English language files to the new {lang} files (the .json localization file and the .js dayjs locale file). 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
  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 against the upstream branch.

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