Skip to content

robb-j/labrador

Repository files navigation

Labrador

This is a prototype tool for editing YAML i18n strings.

You have 2 files. The reference file is the version of the file you want to be translated and the target file is the translation you want to produce. You load both of these files into the tool and it generates an interface for you to do the translation.

Press save at any time to download a modified version of the target file with any changes made to it. Send that file back to whoever asked you to translate it.

Current translations and changes are stored in localStorage so it will persist between reloads.

Background

I made this repo to play around with alpine.js, css variables and vite.

Screenshots

Setup Interface

Editor Interface

Development

Setup

Check out the repo and npm install to get the latest dependencies. Run npm run prepare to setup the husky integration.

Development

# Run the development server with hot-reloading
npm run dev

# Run the build
npm run build

Formatting

Code is automatically formatted using prettier, this runs automatically when comitting code. Commit's will fail if invalid code is staged. You can manually format code with npm run format if you want.

Commits

Commit messages must follow Conventional Commits, this is linted using husky.

Releasing

Releases are generated with standard-version. This decides the next version and generates the CHANGELOG.md based on commit messages.

npm run release