From 3130d7b4342e47de05821fe6736af8c7fef2be36 Mon Sep 17 00:00:00 2001 From: Michael Scoff Date: Mon, 11 Dec 2017 16:52:34 -0800 Subject: [PATCH] Localization standards (#127) * Localization standards * Simplify generic names to just words * Update code.md --- docs/code.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 docs/code.md diff --git a/docs/code.md b/docs/code.md new file mode 100644 index 0000000000..d0d2102f23 --- /dev/null +++ b/docs/code.md @@ -0,0 +1,39 @@ +### Localization + +Format for localization keys: +`feature.section.element.type`, or could be simply as `feature.section.type` + +Examples: +``` +key: transactions.myAddress.button.title, +value: My Address +comment: The title of the my address button on the transactions page + +key: deposit.buy.button.coinbase.title, +value: via Coinbase +comment: The title of the deposit button in the alert sheet + +key: exchange.error.failedToGetRates +value: Failed to get rates +comment: Error messesage when failed to update rates on pairs of tokens + + + +key: welcome.privateAndSecure.label.title +value: Private & Secure +comment: + +key: welcome.privateAndSecure.label.description +value: Private keys never leave your device. +comment: + +``` + +Generic keys and values: +``` +Ok - Ok +Cancel - Cancel +Done - Done +Send - Send +Refresh - Refresh +```