From 037bb852e4297f893912ad8706adbb8d9cb0bc1d Mon Sep 17 00:00:00 2001 From: Ralf Zerres Date: Fri, 11 Jun 2021 17:55:49 +0200 Subject: [PATCH] README.md: Describe localized language translation code Signed-off-by: Ralf Zerres --- README.md | 3 +++ src/lib.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 3972141..4d7eac0 100644 --- a/README.md +++ b/README.md @@ -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] diff --git a/src/lib.rs b/src/lib.rs index c8e0169..d6dcd13 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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]