fa18n
Modern i18n support library base on faml
Manual
Steps:
- Add
fa18nto yourCargo.toml
[]
= 0.1.0
- Create i18n resources:
i18n/
en.faml
zh.faml
en.faml:
[i18n.en]
hello0 = "hello world"
Hello = "hello {name:str}"
zh.faml:
[i18n.zh]
hello0 = "你好,世界"
Hello = "你好,{name:str}"
- Create
build.rsand add code:
- Write
main.rscode:
use crate*;