mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
1.9 KiB
1.9 KiB
Code contributions are welcome! Please commit any pull requests against the master branch.
Internationalization (i18n)
If you are interested in helping translate the bitwarden browser extension into another language, please follow these steps when creating your pull request:
- Create a new folder under
/src/_localesusing the proper Chrome locale code. You can find the locales that Chrome supports here: https://developer.chrome.com/webstore/i18n?csw=1#localeTable. For example, if I want to create a new translation for German, I will create the folder/src/_locales/de. - Copy/paste the English
messages.jsonfile (/src/_locales/en/messages.json) into your newly created locales folder. - Open the
messages.jsonfor your newly created locale and start translating themessageJSON properties. Thedescriptionproperties should be left in English as a reference. - Repeat the same process for the store
COPY.mdandCAPTIONS.mdfiles in/store. Do not copy over theassetsandscreenshotsfolders to your new locale. We will update these based on your translations provided inCAPTIONS.md. Finally, do not translate the titles in the markdown files (ex.# Nameand# Screenshot - Sync). These are only for reference. - Test your translations to make sure they look correct in the extension. Sometimes the UI can break due to translations taking up more space than the original UI was built for. If possible, use a shorter or abbreviated version of the word/sentence to accomedate the available space.
- Be sure to watch for future changes
to the
/src/_locales/en/messages.jsonfile so that your translation will stay up to date.
You can find an example of a proper translation pull request here: https://github.com/bitwarden/browser/pull/49/files