Skip to content

HiDeoo/starlight-ui-strings-cli

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

About

CLI utility to quickly add, update or delete Starlight UI strings in all translation files

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks