Skip to content

Commit

Permalink
Localization standards (trustwallet#127)
Browse files Browse the repository at this point in the history
* 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.
39 changes: 39 additions & 0 deletions docs/code.md
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
```

0 comments on commit 3130d7b

Please sign in to comment.