Skip to content

Commit b7ba923

Browse files
authored
Update doc for locale file version. (#82)
1 parent e7c1985 commit b7ba923

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,14 @@ fn main() {
9292

9393
## Locale file
9494

95-
You can use `_version` key to specify the version of the locale file, and the default value is `1`.
95+
You can use `_version` key to specify the version (This version is the locale file version, not the rust-i18n version) of the locale file, and the default value is `1`.
96+
97+
rust-i18n supports two style of config file, and those versions will always be keeping.
98+
99+
- `_version: 1` - Split each locale into difference files, it is useful when your project wants to split to translate work.
100+
- `_verison: 2` - Put all localized text into same file, it is easy to translate quickly by AI (e.g.: GitHub Copilot). When you write original text, just press Enter key, then AI will suggest you the translation text for other languages.
101+
102+
You can choose as you like.
96103

97104
### Split Localized Texts into Difference Files
98105

0 commit comments

Comments
 (0)