Pages
- CLI. Every command and flag, the exit codes, and how the CLI signs in.
- Config. localeasy.json: file patterns, namespaces, formats, monorepos, and the lockfile.
- CI. The GitHub Action, the same steps with the plain CLI, and the gates a pipeline can use.
- Conflicts. What happens when two people, or a file and a person, change the same text.
- Residency and audit. Where an organisation's data is stored, and what the audit log records and keeps.
- MCP. The endpoint AI agents work through, its tools, and what guards the destructive ones.
- Limits. Every limit the service enforces, in one place.
- API reference. The REST API's routes, and what each webhook delivery carries.
A first push and pull
In the repository that holds your translation files, init finds the files and writes localeasy.json for a project you made in the app, here storefront, on this server. push sends the source texts. pull writes the translations the project has.
$ localeasy init --yes --server https://staging.localeasy.app --project storefront
✓ Done Wrote localeasy.json locales/en/{namespace}.json → locales/{locale}/{namespace}.json
→ Add .localeasy/ to .gitignore: it holds the pulled copies three-way pushes compare with
· Run 4bf92f3577b34da6a3ce929d0e0e4736
$ localeasy push
· on the main line 1 workspace · 3 keys in 1 file
✓ . added 3, changed 0 0.0 s · head 1
✓ Done Pushed 3 texts 0.0 s
· Lockfile updated
· Run 4bf92f3577b34da6a3ce929d0e0e4736
$ localeasy pull
· . 1 language · 1 file
✓ locales/sv/app.json
✓ Done Pulled 1 file 0 unchanged · 0.0 s
· Run 4bf92f3577b34da6a3ce929d0e0e4736The output above is from a test server, where every run has the same id and takes no time. Yours will differ.
--create storefrontin place of--project storefrontmakes the project, if the app does not have it yet.- Commit
localeasy.jsonandlocaleasy.lock. Add.localeasy/to.gitignore. - Every run ends with its run id. The audit log has the same id on each change the run made.
You already have translations
Import the translation files in the repository once, after the first push and before the first pull:
$ localeasy push --translations --strategy overwrite --forceIt sends the files as they are and replaces the server's translations where they differ. Until then, pull keeps a translation file that was never pushed and differs from the server's, and names it.
A project's first texts and a new language go to main. If git has another branch checked out, add --branch main to the first push and to this import.
The CLI is a pre-release and is not published yet. Install on the CLI page says how to run it today.
Words these pages use
- Organisation. Your team's account. It holds projects, people, API keys and the audit log.
- Project. One product's texts. Each project is stored in a database of its own.
- Namespace. A group of keys inside a project, usually one source file:
checkoutforlocales/en/checkout.json. - Key. One text's name, such as
payment.pay_now. Some formats add a context to tell two keys with the same name apart. - Source text and translation. The source text is the key's text in the project's source language. A translation is its text in another language.
- Status. A translation is translated, needs review or approved. When its source text changes afterwards, it also shows as source changed, and no longer counts as fresh.
- Branch. A set of changes kept apart from the main line until it is merged, usually one per git branch.