aboutsummaryrefslogtreecommitdiffstats
path: root/docs/translating-guide.md
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-03-14 02:25:31 +0800
committerGitHub <noreply@github.com>2018-03-14 02:25:31 +0800
commit15722b4e6c5610e2eb4a59683e5cd3cb3fe8b3f7 (patch)
treea3c2ca7b25e709aa4e1330e8c498b6bd335bffdf /docs/translating-guide.md
parent3cbf66a6de0c5348e90992c378d54c6e60f28dd7 (diff)
parent5a1b2093f8a3307b9d56d903d8a1b75e86f36b29 (diff)
downloadtangerine-wallet-browser-15722b4e6c5610e2eb4a59683e5cd3cb3fe8b3f7.tar.gz
tangerine-wallet-browser-15722b4e6c5610e2eb4a59683e5cd3cb3fe8b3f7.tar.zst
tangerine-wallet-browser-15722b4e6c5610e2eb4a59683e5cd3cb3fe8b3f7.zip
Merge pull request #3456 from MetaMask/i18n
Add i18n
Diffstat (limited to 'docs/translating-guide.md')
-rw-r--r--docs/translating-guide.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/translating-guide.md b/docs/translating-guide.md
new file mode 100644
index 000000000..62d444b5a
--- /dev/null
+++ b/docs/translating-guide.md
@@ -0,0 +1,18 @@
+# MetaMask Translation Guide
+
+The MetaMask browser extension supports new translations added in the form of new locales files added in `app/_locales`.
+
+- [The MDN Guide to Internationalizing Extensions](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Internationalization)
+
+## Adding a new Language
+
+Each supported language is represented by a folder in `app/_locales` whose name is that language's subtag ([look up a language subtag using this tool](https://r12a.github.io/app-subtags/)).
+
+Inside that folder there should be a `messages.json` file that follows the specified format. An easy way to start your translation is to first duplicate `app/_locales/en/messages.json` (the english translation), and then update the `message` key for each in-app message.
+
+That's it! When MetaMask is loaded on a computer with that language set as the system language, they will see your translation instead of the default one.
+
+## Testing
+
+To verify that your translation works, you will need to [build a local copy](https://github.com/MetaMask/metamask-extension#building-locally) of MetaMask.
+