0.0.37 • Published 1 year ago
ramilang v0.0.37
Ramilang
Command-line interface (CLI) tool to handle and validate translations in RamiCustomerPortal.
Features
- Detect Duplicate Keys: Finds duplicate keys within the translation files.
- Validate Key Compatibility: Ensures that the keys in different translation files match.
- Find Missing and Empty Keys: Detects any missing or empty keys.
- Sort Translation Keys: Option to sort keys in the translation files.
- Check Unused Keys: Detects keys that are not being used in the codebase (
tsandtsxfiles). - Detect Usage of Invalid Keys: Detects usage of keys that does not exist (
tsandtsxfiles). - Custom Ignore List: Ability to ignore certain keys from the unused keys check. Useful for keys that are used in a non-standard way, making static analysis hard.
- Visual Edit Mode: Edit the translations from your browser.
Usage from customer portal turborepo root
Run checks, ignoring unused entries present in .keyignore
pnpm translationsRun checks, ignoring unused entries present in .keyignore and sort keys alphabetically
pnpm translations:sortVisual edit mode
pnpm translations:editManual usage with pnpm
Running latest version from npm
pnpx ramilang@latest --en-file ./shared/translations/en.json --sv-file ./shared/translations/sv.jsonwith an ignore list
pnpx ramilang@latest --en-file ./shared/translations/en.json --sv-file ./shared/translations/sv.json --ignore-file ./shared/translations/.keyignorewith alphabetical sorting on keys
pnpx ramilang@latest --sort --en-file ./shared/translations/en.json --sv-file ./shared/translations/sv.jsonArguments
--en-file: Path to English translation file.--sv-file: Path to Swedish translation file.--root-dir: Root directory to search from (default is current directory).--ignore-file: Path to file with line separated translation keys to exclude from unused check.--sort: Sort keys alphabetically in translation files.-i: Interactive mode, or edit mode.
0.0.37
1 year ago
0.0.36
2 years ago
0.0.33
2 years ago
0.0.34
2 years ago
0.0.35
2 years ago
0.0.32
2 years ago
0.0.31
2 years ago
0.0.30
2 years ago
0.0.29
2 years ago
0.0.28
2 years ago
0.0.27
2 years ago
0.0.26
2 years ago
0.0.25
2 years ago
0.0.24
2 years ago
0.0.23
2 years ago
0.0.22
2 years ago
0.0.21
2 years ago
0.0.20
2 years ago
0.0.19
2 years ago
0.0.18
2 years ago
0.0.17
2 years ago
0.0.16
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago