Skip to content

Commit

Permalink
README.md: Describe localized language translation code
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Zerres <[email protected]>
  • Loading branch information
rzerres committed Jun 12, 2021
1 parent 2caffa2 commit 037bb85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ fn main() {
```

3. You need an INI file with your translations. Example with `translations.ini`:
Language translations are matched by `two lowercase letter` code (eg: `en`).
Localized language translations are identified by `two lowercase letter` code,
plus `hyphen`, plus `to letter localization` code (eg: `en-gb`).

```
[app_ruin_the_band]
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
//! ```
//!
//! 3. You need an INI file with your translations. Example with `translations.ini`:
//! Language translations are matched by `two lowercase letter` code (eg: `en`).
//! Localized language translations are identified by `two lowercase letter` code,
//! plus `hyphen`, plus `to letter localization` code (eg: `en-gb`).
//!
//! ```text
//! [app_ruin_the_band]
Expand Down

0 comments on commit 037bb85

Please sign in to comment.