An open API service indexing awesome lists of open source software.

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

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.




Integration Status


License



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