Ir al contenido
Docs menuGet started
On this page
  1. 1. Sign in
  2. 2. Set up the workspace
  3. 3. Create an app
  4. 4. Add your first strings
  5. 5. Publish
  6. 6. Check it is served
  7. 7. Use it in your app
  8. Next

Get started

From sign-in to your first string served by the CDN, in about ten minutes. No package to install.

Lefine runs at dash.lefine.ai. A workspace is your company or product; an app is one codebase in it. By the end of this page, one text of yours is live on cdn.lefine.ai in two languages.

1. Sign in

Open dash.lefine.ai/login and pick Continue with Google or Email me a code (a 6-digit code, valid for 10 minutes). There are no passwords.

On your first sign-in Lefine creates a workspace and makes you its owner.

2. Set up the workspace

  1. Workspace: name it.
  2. Modules: turn on Strings (Content is optional).
  3. Team: add emails, or skip. People get access when they sign in with that email.
  4. Plan: this step shows only when billing is on. Then you start the 14-day Pro trial and add a card on Stripe; nothing is charged until the trial ends. While billing is off, the step is skipped and nothing is charged.

3. Create an app

  1. Open Strings and press New app.
  2. Name it, pick the framework, set the source language to English and add German as a target language.
  3. Choose Upload files and press Create app.

New apps are served from the CDN by default (Delivery → Serve this app from the CDN).

4. Add your first strings

Save these two files:

en.json
// en.json{ "home": { "title": "Hello from Lefine", "cta": "Get started" } }
de.json
// de.json{ "home": { "title": "Hallo von Lefine", "cta": "Loslegen" } }

In the app's Keys tab, press Import a file:

  1. Language of this file: English. Namespace: common. Choose en.json, check the preview (Created: 2), press Import.
  2. Press Import again for de.json, with German and the same namespace.

Imported texts are ready to ship: the source language comes in Approved, other languages Reviewed. (Texts the AI writes come in as AI drafts and wait for a person; see Review.)

5. Publish

Owners and admins publish. Open Releases: Next release lists what ships. Press Publish … changes, check the preview (both languages, nothing Held back), then Publish … texts.

Lefine writes the files and reads every language back through the CDN. The release shows Live, checked when every key is served. The Delivery tab shows the same check under Live on the CDN.

6. Check it is served

Copy the App id from Delivery → SDK setup (it starts with app_ and never changes). Then:

Terminal
curl https://cdn.lefine.ai/app_YOUR_APP_ID/manifest.json

The manifest lists your languages and, under files, one entry per language with its version. Fetch a language with that version:

Terminal
curl https://cdn.lefine.ai/app_YOUR_APP_ID/v/VERSION/de/translations.json# {"common":{"home":{"title":"Hallo von Lefine","cta":"Loslegen"}}}

That is your first string served. A file for a published version never changes; the next publish gets a new version, and the manifest points to it.

If the manifest answers 404 with {"error":"not_published"}, nothing is live yet: publish (step 5), and check that the CDN switch in Delivery is on.

7. Use it in your app

Preview. The lefine package is not on npm yet, so npm i lefine fails today. Until it is, any app can read the two URLs above directly.

The app's Delivery tab shows the setup code for your framework, with your app id filled in. The guides go further: Next.js, TanStack Start, Vue and Svelte, React (Vite).

Next

Next step · StringsConnect GitHub or the CLI
Was this page helpful?