forked from KyberNetwork/KyberSwap-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Localization standards (trustwallet#127)
* Localization standards * Simplify generic names to just words * Update code.md
- Loading branch information
Michael Scoff
authored
Dec 12, 2017
1 parent
5609ead
commit 3130d7b
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
``` |