A project holds one set of keys and the languages they are translated into. Make one per app or website.
Before you start
- Decide on the source language: the language you write the original strings in, usually
en. You can't change it later. - Have your existing translations at hand if there are any. You can import them right after.
Create the project
Open Projects
Select Projects in the sidebar, then New project. New project is also in the project switcher at the top of the sidebar and in the ⌘K command palette.
Fill in the dialog
- Project name: what people will see, such as "Mobile app". It must be unique: if another project already has that name (ignoring case), you see "A project called “…” already exists."
- Default language: the source language, such as
en,deorfr-CA. It can't be changed later. - Description (optional): what the project is for. It shows on the project's card.
Create it
Select Create project. You see "Project “…” created" and the project's overview opens.
Add keys
Keys are the stable names of your strings, such as home.title. In the Editor, select Add key, or press N anywhere in the project:
- Single: one key, its source value, and an optional description or context. The description is shown under the key in the editor and is sent to the AI with the string, so it's worth writing for short or ambiguous strings.
- Paste JSON: a JSON object to add up to 5,000 keys at once. Nested objects become dot-separated keys:
{"home": {"cta": "Start"}}becomeshome.cta. Flat dotted keys such as"home.cta"work here too. The dialog counts the keys it detects and points out mistakes such as a trailing comma, with the line. Turn on Overwrite existing values to replace the source values of keys that already exist; when it's off, keys that already exist are skipped. The button reads, for example, Add 12 keys.
⌘Enter submits the dialog on either tab.
If you already have files for your languages, import them instead.
Next steps
- Add languages to translate into.
- Translate with AI or by hand in the editor.
- Create an API key so your build can download the translations.