Socket
Book a DemoInstallSign in
Socket

strapi-plugin-ja-pack

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strapi-plugin-ja-pack

Translate Strapi's admin panel into Japanese.

2.0.1
latest
Source
npmnpm
Version published
Weekly downloads
53
-8.62%
Maintainers
1
Weekly downloads
 
Created
Source

Strapi Japanese Translation Plug-in

このプラグインはStrapiバージョン4および5の管理画面の単語・文章を日本語に翻訳することができます。

ただしStrapi本体で一部、翻訳キーが当たってないものがあるため英語表記で出るものもあります。また、EE版(Enterprise Edition)の機能に関する翻訳はサポートしていません。

サポートバージョン

Strapi v4: 1.*.*
Strapi v5: 2.*.*

インストール

npm install strapi-plugin-ja-pack
または
yarn add strapi-plugin-ja-pack

Strapi v5サポート版ではContent Typeのコレクションタイプやシングルタイプのスキーマ名を別名に置き換えることができます。 詳細は一番下に記載しています。

セットアップ

Step1

i18nとstrapi-plugin-ja-packを有効にします。

// プロジェクトルート/config/plugins.js
module.exports = ({env}) => ({
  i18n: true,
  'strapi-plugin-ja-pack': {
    enabled: true,
  }
});

Step2

ja(日本語)を有効にします

// src/admin/app.js
export default {
  config: {
    locales: [
      'ja',
    ],
  },
  bootstrap(app) {
  },
};

Step3

管理画面にログインして日本語を追加します。

Settings > Internationalization > "+ Add new locale" > add ja & default

Step4

ログインユーザーのデフォルト言語を日本語にします。 左下のアバターっぽい画像をクリック→言語を日本語にして保存

Content Typeのスキーマ名を日本語に置き換える

本プラグインを有効後、src/admin/app.tsxのconfig.translations.ja.strapi-plugin-ja-packに文言を設定できます。

例えば、コレクションタイプbookにtitleやdescription、createdAtといった項目を置き換える場合は下記のようにします。

export default {
  config: {
    locales: [
      "ja"
    ],
    translations: {
      ja: {
        'strapi-plugin-ja-pack': {
          id: "ID",
          title: "タイトル",
          description: "説明",
          createdAt: "作成日時",
          content: "本文"
        }
      }
    },
  }
}

この時のbookの一覧と作成/編集画面はこのようになります。

不具合やおかしな日本語訳があればお気軽にPR/Issuesください。

Keywords

strapi

FAQs

Package last updated on 24 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.