Action Locales

Adds a toolbar popup whose text follows your browser's language.

Runs on Chrome, Edge, Firefox · Manifest V3 · Surfaces: popup, background service worker · Styling: CSS · Level: beginner

Create this project

npx extension@latest create my-action-locales --template action-locales
cd my-action-locales
npm install
npm run dev

What it is for

  • A toolbar popup translated with the i18n API
  • Shipping _locales without hand-editing the manifest
  • Reference for localized extension UI across browsers

First steps

  • Run npm run dev to launch the extension
  • Click the toolbar icon to see the popup in your browser's language
  • Add a folder under _locales/ and switch your browser language to see it

Permissions it asks for

This template requests no permissions.

extension.devDocumentation for extension.dev