0.1.1 • Published 1 year ago

@hideoo/starlight-ui-strings-cli v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

!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.

0.1.1

1 year ago

0.1.0

1 year ago