@nuxtjp/localized-site

Contract-first Japanese and English public-site module for Nuxt
1,720
Install
npm install @nuxtjp/localized-site
Latest Version:0.2.6
Vue:3
License:Apache-2.0
Last Updated:Oct 23, 2026
Links: GitHub  ·  npm
Maintainer: coela

@nuxtjp/localized-site

日本語

Generate a Japanese/English introduction site from one validated configuration. The module supplies /, /docs, /docs/getting-started, /docs/security and their English counterparts, locale links and SEO metadata.

Install and configure

Install the published package version 0.1.4 from the official npm registry. Use Node.js 22.19+ or 24.11+, Nuxt 4.5.1+ in major 4, and Vue ^3.5.40.

pnpm add @nuxtjp/localized-site nuxt vue
export default defineNuxtConfig({
  modules: [['@nuxtjp/localized-site', { contentRoot: '.' }]]
})

Set contentRoot explicitly. Copy the generic configuration there as site.config.json, and replace it with the site's own content. The configuration requires siteId, serviceId, origin, audienceScope, complete ja/en content, exactly three features, getting-started and security documents, privacy/contact notices, and externalActions: false.

pnpm exec nuxtjp-localized-site validate --content-root .
pnpm exec nuxt build

Behavior and limits

Privacy/contact notices are text. The module creates no unset links or actions. In the browser, the optional maintenance notice reads same-origin /maintenance.json. Failed retrieval, invalid data or expired data hides that notice; the site and locale switching remain usable. For archive testing, install the exact reviewed TGZ instead of the registry version. These commands do not publish a website or configure registry access.

Typed messages

const messages = defineLocalizedMessages({
  ja: { save: '保存', cancel: 'キャンセル' },
  en: { save: 'Save', cancel: 'Cancel' }
})
const { t } = useLocalizedMessages(messages)
t('save')

English keys must match Japanese keys. Empty messages fall back to fallbackLocale, then defaultLocale.

Development

pnpm install --frozen-lockfile
pnpm test
pnpm typecheck
pnpm build
pnpm validate:example
pnpm pack

prepack runs tests, typecheck, build and example validation. Verify the actual archive in a separate host before a release.

Documentation and license

Usage guide · Schema · Tests · Security reporting

Code: Apache-2.0. LICENSE-PREVIOUS retains prior grants, and NOTICE preserves attribution. LICENSE-ASSETS retains separate terms for covered brand/content assets. It does not change the code license or grant rights to third-party or site-owned content.

Consumer dependency security

See dependency security backports before installing this package in a Nuxt application. pnpm consumers must explicitly apply the included backports and verify their locked dependency tree; ordinary npm installation does not apply them.

Public showcase / OSS紹介

Dashboard, product LP, public feed and owner operations — opt-in 0.2.0 candidate; staged owner approval is still required.

Organization showcase candidate (0.2.2)

Place a reviewed nuxtjp://showcase/v1 public snapshot at the content root's public/oss/showcase.json to add localized /oss and /oss/<entry-id> pages. Reuse the existing validator, component and bounded registry collector. Pages never access provider accounts or registries; unavailable/stale values remain distinct from zero, and feedback links point to public owner source issues.

Snapshots must be regular, bounded files without symlinks; route conflicts are rejected. The organization preset disables an absent maintenance endpoint rather than inventing health. General consumers retain the previous default and may explicitly use maintenance: false. Version 0.2.2 is a pre-publication candidate, pending reviewed hash and consumer acceptance.

OSS responsibility and source completion defines the supported package boundary and required acceptance. It does not declare unexecuted source, distribution or production checks complete.

Dependency updates: repository policy. Registry releases: version tags and GitHub OIDC.

Related Packages

@nuxtjp/ui

Nuxt UI derivative with a traceable Japanese public-design profile

1,077 0
@nuxtjp/local-runtime

Fail-closed Nuxt client for a loopback local runtime

989 0
@nuxtjp/operations-console

Provider-neutral operational readiness and network-control presentation for Nuxt

339 0
@nuxtjp/provider-auth

Provider-neutral external-service authentication UI for Nuxt

334 0
@nuxtjp/managed-resources

Provider-neutral managed-resource presentation for Nuxt

330 0

Version History

Version Released Vue License
0.2.6 ^3.5.40 Apache-2.0
0.2.5 ^3.5.40 Apache-2.0
0.2.4 ^3.5.40 Apache-2.0
0.2.3 ^3.5.40 Apache-2.0
0.2.2 ^3.5.40 Apache-2.0
Pre-releases (1)
Version Released License
0.0.0-stage