A Chrome extension that forces the browser locale to Japanese (ja).
localeja modifies the browser locale in two ways:
- Accept-Language HTTP header: Rewrites the
Accept-Languageheader toja,en-US;q=0.9,en;q=0.8for all requests using thedeclarativeNetRequestAPI (server-side locale detection). - navigator.language / navigator.languages: Overrides
navigator.languageto"ja"andnavigator.languagesto["ja", "en-US", "en"]via a MAIN world content script (client-side locale detection).
- Clone this repository
- Install dependencies:
pnpm install - Build the extension:
pnpm build - Open
chrome://extensions/in Chrome - Enable "Developer mode"
- Click "Load unpacked" and select the
dist/directory
pnpm dev # Build with watch mode
pnpm build # Production build
pnpm typecheck # Run TypeScript type checking
pnpm lint # Run linter (oxlint)
pnpm format # Format code (prettier)
pnpm package # Build and create package.zipMIT