mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
small revision
This commit is contained in:
parent
4f5f4e2a90
commit
3f6778450b
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ The `lib.rs` file in this crate is auto-generated by `xtask`. It must be manuall
|
||||||
calling `xtask generate-locales` every time changes are made to the localization strings.
|
calling `xtask generate-locales` every time changes are made to the localization strings.
|
||||||
|
|
||||||
## Where are the Strings?
|
## Where are the Strings?
|
||||||
Locale files can be added to any app by making a `locales` directory within the `apps` folder, and
|
Locale files can be added to any app, service, etc by making a `locales` directory within the item's top level folder, and
|
||||||
then placing a `i18n.json` file in there with a format like this:
|
then placing a `i18n.json` file in there with a format like this:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
|
@ -36,7 +36,7 @@ Note that "en-tts" is a locale for english/vision-impaired. `🔇` means that an
|
||||||
for that locale (can be used in any locale, not just speech-to-text locales). Omitting a locale
|
for that locale (can be used in any locale, not just speech-to-text locales). Omitting a locale
|
||||||
entirely without using the 🔇 character will lead to a panic.
|
entirely without using the 🔇 character will lead to a panic.
|
||||||
|
|
||||||
There are also locale files `i18n.json` and `manifest.json` in the `apps` folder itself for strings relevant to menu items etc.
|
There are also locale files `i18n.json` and `manifest.json` in the `apps` folder itself for strings relevant to menu items etc. If you add an app you will want to add items here as well.
|
||||||
|
|
||||||
## How to Code with Locales
|
## How to Code with Locales
|
||||||
The JSON file is parsed by `xtask` into a lib.rs file which is referred to within a server by
|
The JSON file is parsed by `xtask` into a lib.rs file which is referred to within a server by
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue