Docs menuHelp / Troubleshooting
On this page
- project must be the app's id (app_...), not its name
- <locale> is not published for app_...
- A publish fails at "Build snapshot"
- The page shows a key or a red badge
- A publish does not show
- timeZone "..." is not one Intl knows
- lefine mcp: not signed in
- lefine strings push stops in CI
- An AI client cannot publish
- lefine_add_key refuses a key
Troubleshooting
The errors Lefine shows most often, what each one means, and the fix.
Each heading is the message as Lefine prints it.
project must be the app's id (app_...), not its name
project got a name like acme/web. Lefine loads texts by the app id, because names change. Copy the id in the app's Settings → General → App id, or run npx lefine init to write it.
For content the same rule holds: workspaceId and projectId are ids (ws_..., prj_...). Copy them in Content → Delivery, or run npx lefine content types.
<locale> is not published for app_...
The locale is not on the CDN yet. Publish it in the app's Releases tab, or check the locale code. pt-BR and pt-br are the same locale.
A publish fails at "Build snapshot"
A text is not valid ICU, for example a plural without an other branch. The run names each text and uploads nothing. Fix the text in Lefine, then publish again. Run npx lefine strings check -p app_… to find these before you push.
The page shows a key or a red badge
The key, a value or a format is missing. In development the badge's tooltip says which. Then:
- Run
npx lefine strings types -p app_…, so your editor marks unknown keys. - Check that the provider loads the key's namespace. Only the namespaces you name reach the page.
A publish does not show
Texts are cached for 60 seconds, so a publish shows within a minute. In Next.js you can show it at once with the webhook route.
timeZone "..." is not one Intl knows
Use an IANA name, like Europe/Istanbul or UTC.
lefine mcp: not signed in
Run npx lefine login, or set LEFINE_TOKEN to an access key (lfn_...).
lefine strings push stops in CI
push shows the change and asks before it writes. In CI, add -y. Sign in with LEFINE_TOKEN, not lefine login.
An AI client cannot publish
That is on purpose. A publish asks a person first: the client gets a link to approve in Lefine. See Approvals.
lefine_add_key refuses a key
It refuses when the key exists in any namespace, when the same text already has a key, when the namespace does not exist, or when the text is not valid ICU. The answer says which. Call lefine_find_similar_key first. See the MCP tool reference.