Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hideoo/starlight-i18n

Visual Studio Code extension - Easily translate Starlight documentation pages.
https://github.com/hideoo/starlight-i18n

documentation extension i18n internationalization starlight translation vscode

Last synced: 3 months ago
JSON representation

Visual Studio Code extension - Easily translate Starlight documentation pages.

Awesome Lists containing this project

README

        


Starlight i18n extension icon

Starlight i18n



Easily translate Starlight documentation pages.




Integration Status


License




Demo of the Starlight i18n extension


## Features

Visual Studio Code extension to easily translate [Starlight](https://starlight.astro.build/) documentation pages using the built-in [support for multilingual sites](https://starlight.astro.build/guides/i18n/) and [git](https://git-scm.com/).

- Collect supported languages from a Starlight configuration in a workspace repo or monorepo.
- Pick a language and a page to translate.
- Open side-by-side editors with the missing changes and the translated page for out-of-date pages.
- Open side-by-side editors with the source page and a newly created page for missing translated pages.
- Configurable Starlight configuration directories.

## Usage

1. Open a repository or monorepo containing a Starlight documentation website.
2. Open the Visual Studio Code [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) (`Ctrl+Shift+P` or `Cmd+Shift+P` on macOS)
3. Run the `Starlight i18n` command

## Configuration

By default, the Starlight i18n extension will look for a Starlight configuration in an [Astro configuration file](https://docs.astro.build/en/guides/configuring-astro/#supported-config-file-types) located either at the root of the workspace or in a `docs/` subdirectory.

You can customize the directories where the extension will look for a Starlight configuration in your Visual Studio Code [User](https://code.visualstudio.com/docs/getstarted/settings#_settings-editor) or [Workspace](https://code.visualstudio.com/docs/getstarted/settings#_workspace-settings) settings.

```json
{
"starlight-i18n.configDirectories": [".", "./docs", "./app", "./packages/docs"]
}
```

## More extensions

- [Toggler](https://marketplace.visualstudio.com/items?itemName=hideoo.toggler) - Toggle words and symbols.
- [Create](https://marketplace.visualstudio.com/items?itemName=hideoo.create) - Quickly create new File(s) & Folder(s).
- [Trailing](https://marketplace.visualstudio.com/items?itemName=hideoo.trailing) - Toggle trailing symbols: commas, semicolons and colons.

## License

Licensed under the MIT License, Copyright © HiDeoo.

See [LICENSE](https://github.com/HiDeoo/starlight-i18n/blob/main/LICENSE) for more information.