Better I18NBetter I18N

Translations

Read, write, and publish translations

Get translations

const translations = await admin.translations.get()
const filtered = await admin.translations.get({ namespaces: ['common'] })

Set translations (bulk)

await admin.translations.set({
  t: [
    { id: 'key-uuid', t: { de: 'Anmelden', fr: 'Connexion' } }
  ]
})

Publish to CDN

await admin.translations.publish()

Get translation context

Retrieves glossary, instructions, and preferences for AI-assisted translation:

const context = await admin.translations.context()

Check pending changes

const pending = await admin.translations.pendingChanges()

On this page