You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+4-12Lines changed: 4 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -466,6 +466,7 @@ The following scripts help manage translation files. `en.json` is the reference
466
466
|`pnpm i18n:check:fix [locale]`| Same as check, but adds missing keys to other locales with English placeholders. |
467
467
|`pnpm i18n:report`| Audits translation keys against code usage in `.vue` and `.ts` files. Reports missing keys (used in code but not in locale), unused keys (in locale but not in code), and dynamic keys. |
468
468
|`pnpm i18n:report:fix`| Removes unused keys from `en.json` and all other locale files. |
469
+
|`pnpm i18n:schema`| Generates a JSON Schema from `en.json` at `i18n/schema.json`. Locale files reference this schema for IDE validation and autocompletion. |
469
470
470
471
### Adding a new locale
471
472
@@ -491,17 +492,8 @@ To add a new locale:
491
492
},
492
493
```
493
494
494
-
4. Copy your translation file to `lunaria/files/` for translation tracking:
> This file must be committed. Lunaria uses git history to track translation progress, so the build will fail if this file is missing.
502
-
503
-
5. If the language is `right-to-left`, add `dir: 'rtl'` (see `ar-EG` in config for example)
504
-
6. If the language requires special pluralization rules, add a `pluralRule` callback (see `ar-EG` or `ru-RU` in config for examples)
495
+
4. If the language is `right-to-left`, add `dir: 'rtl'` (see `ar-EG` in config for example)
496
+
5. If the language requires special pluralization rules, add a `pluralRule` callback (see `ar-EG` or `ru-RU` in config for examples)
505
497
506
498
Check [Pluralization rule callback](https://vue-i18n.intlify.dev/guide/essentials/pluralization#custom-pluralization) and [Plural Rules](https://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories) for more info.
0 commit comments