Generate experiences with Puck AI
Read docs
CloudAuthLocalization

Localizing the Auth plugin

Puck Auth is experimental and may change in a future release.

The Auth plugin’s UI uses US English. You can localize it via Puck’s dictionary prop, extended with additional tokens.

Translating plugin strings

To translate strings, provide a dictionary object with the keys you want to change and their corresponding localizations. The Auth plugin’s keys start with plugin-auth-.

import { Puck } from "@puckeditor/core";
import { createAuthPlugin } from "@puckeditor/plugin-auth";
 
const authPlugin = createAuthPlugin();
 
export function Editor() {
  return (
    <Puck
      plugins={[authPlugin]}
      dictionary={{
        "plugin-auth-menu-toggle": "Cuenta", // Account menu button
        "plugin-auth-menu-sign-out": "Cerrar sesiĂłn", // Sign out menu item
      }}
      config={config}
      data={data}
    />
  );
}

See Puck’s localization guide for a full explanation of localizing, including interpolating values and switching languages at runtime.

Further reading