Update README_TRANSLATORS to reflect the new i18n locales struct path.
It was moved in 9feaec9c9c, but the documentation
seems to have been forgotten.
pull/8819/head
parent
055a007926
commit
f6c1653dee
|
|
@ -131,12 +131,11 @@ which should be filled in accordingly. You can then add your translations
|
|||
within the newly created translation file.
|
||||
|
||||
Afterwards, you need to update the list of known locales within Ghostty's
|
||||
build system. To do so, open `src/os/i18n.zig` and find the list
|
||||
of locales under the `locales` variable, then add the full locale name
|
||||
into the list.
|
||||
build system. To do so, open `src/os/i18n_locales.zig` and find the list
|
||||
of locales after the comments, then add the full locale name into the list.
|
||||
|
||||
The order matters, so make sure to place your locale in the correct position.
|
||||
Read the comment above the variable for more details on the order. If you're
|
||||
Read the comments present in the file for more details on the order. If you're
|
||||
unsure, place it at the end of the list.
|
||||
|
||||
```zig
|
||||
|
|
@ -146,7 +145,7 @@ const locales = [_][]const u8{
|
|||
}
|
||||
```
|
||||
|
||||
You should then be able to run `zig build` and see your translations in action.
|
||||
You should then be able to run `zig build` and see your translations in action!
|
||||
|
||||
Before opening a pull request with the new translation file, you should also add
|
||||
your locale to the `CODEOWNERS` file. Find the `# Localization` section near the
|
||||
|
|
|
|||
Loading…
Reference in New Issue