@hideoo/starlight-ui-strings-cli
v0.1.1
Published
CLI utility to quickly add, update or delete Starlight UI strings in all translation files.
Downloads
3
Maintainers
Readme
[!NOTE]
This CLI utility is designed to be only used by Starlight 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:
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:
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:
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:
pnpm dlx @hideoo/starlight-ui-strings-cli --delete existing.string
License
Licensed under the MIT License, Copyright © HiDeoo.
See LICENSE for more information.