https://github.com/hideoo/starlight-ui-strings-cli
CLI utility to quickly add, update or delete Starlight UI strings in all translation files
https://github.com/hideoo/starlight-ui-strings-cli
cli starlight strings translation ui
Last synced: 4 months ago
JSON representation
CLI utility to quickly add, update or delete Starlight UI strings in all translation files
- Host: GitHub
- URL: https://github.com/hideoo/starlight-ui-strings-cli
- Owner: HiDeoo
- License: mit
- Created: 2024-07-05T12:22:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-16T07:55:30.000Z (over 1 year ago)
- Last Synced: 2025-03-18T06:37:26.077Z (over 1 year ago)
- Topics: cli, starlight, strings, translation, ui
- Language: TypeScript
- Homepage:
- Size: 150 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
starlight-ui-strings-cli 🧵
CLI utility to quickly add, update or delete Starlight UI strings in all translation files.
> [!NOTE]
> This CLI utility is designed to be only used by [Starlight](https://starlight.astro.build/) maintainers when dealing with UI strings.
## How to use
To get started, make sure you are at the root of the Starlight monorepo or in the `packages/starlight/` directory.
### Add a new UI string
To add a new UI string at the end of all translation files, run the following command:
```sh
pnpm dlx @hideoo/starlight-ui-strings-cli --add new.string --value "my new string"
```
To add a new UI string after an existing one in all translation files, run the following command:
```sh
pnpm dlx @hideoo/starlight-ui-strings-cli --add new.string --value "my new string" --after existing.string
```
### Update an existing UI string
To update an existing UI string (if it exists) in all translation files, run the following command:
```sh
pnpm dlx @hideoo/starlight-ui-strings-cli --update existing.string --value "my updated string"
```
### Delete an existing UI string
To delete an existing UI string (if it exists) in all translation files, run the following command:
```sh
pnpm dlx @hideoo/starlight-ui-strings-cli --delete existing.string
```
## License
Licensed under the MIT License, Copyright © HiDeoo.
See [LICENSE](https://github.com/HiDeoo/starlight-ui-strings-cli/blob/main/LICENSE) for more information.