Japanese Language Pack for Flarum

Flarumを日本語化する拡張機能です。
Japanese language pack to localize the Flarum.

インストール方法 | Installation


  1. Flarumがインストールされているディレクトリで以下のコマンドを実行してください。
    Run the following command in the location where Flarum is installed.

    composer require flarum-lang/japanese
  2. 管理画面の拡張機能ページから、Japaneseを有効化します。
    Go to Extensions page of the admin interface and enable Japanese.

  3. 管理画面の基本ページからデフォルトの言語をJapaneseに変更します。
    Go to Basics page of the admin interface and change default language to Japanese.

アップデートと削除方法 | Updating and Uninstall


Flarumがインストールされているディレクトリで以下のコマンドを実行してください。
Run the following command in the location where Flarum is installed.

  • アップデート | Updating

    composer update flarum-lang/japanese
    php flarum cache:clear
  • アンインストール | Uninstall

    composer remove flarum-lang/japanese

リンク | Link


takumi9942 How about we maintain this repository together? Or we create a new github organization and transfer the language pack to it.
If there have new extensions that need to be translated, but you are not online, I will translate them first, then git them to github, after you review and proofread the new version will be released.

takumi9942 I think it is very hard to merge

You can check the extensions you have translated in the above repository, compare them with your translation, and modify if there have translation errors.

    Littlegolden
    OK! I created new github organization and transfer my extension so that both of us can manage repository.
    I sent the invitation to your github account, please check email.

    a year later

    This language has a problem in the config.js. The "time" variables are not working correctly and are showing in english (maybe because an old configuration before 1.0).

    Looking at other languages I tried to fix it. Now it's working.

    /locale/config.js
    dayjs.locale({
    name: 'ja',
    weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
    weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
    weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
    months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
    monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
    weekStart: 1,
    yearStart: 4,
    formats: {
    LT: 'HH:mm',
    LTS: 'HH:mm:ss',
    L: 'YYYY/MM/DD',
    LL: 'YYYY年M月D日',
    LLL: 'YYYY年M月D日 HH:mm',
    LLLL: 'YYYY年M月D日 dddd HH:mm',
    l: 'YYYY/MM/DD',
    ll: 'YYYY年M月D日',
    lll: 'YYYY年M月D日 HH:mm',
    llll: 'YYYY年M月D日(ddd) HH:mm',
    },
    calendar : {
    sameDay: '[今日] LT',
    nextDay: '[明日] LT',
    nextWeek: function (now) {
    if (now.week() !== this.week()) {
    return '[来週]dddd LT';
    } else {
    return 'dddd LT';
    }
    },
    lastDay: '[昨日] LT',
    lastWeek: function (now) {
    if (this.week() !== now.week()) {
    return '[先週]dddd LT';
    } else {
    return 'dddd LT';
    }
    },
    sameElse: 'L'
    },
    relativeTime: {
    future : '%s後',
    past : '%s前',
    s : '数秒',
    ss: '%d秒',
    m : '1分',
    mm : '%d分',
    h : '1時間',
    hh : '%d時間',
    d : '1日',
    dd : '%d日',
    M : '1ヶ月',
    MM : '%dヶ月',
    y : '1年',
    yy : '%d年',
    },
    ordinalParse: /\d{1,2}º/,
    ordinal: n =>
    ${n}.})

      17 days later

      Deku
      Fixed in v3.0.2. Please update the extension !

      composer update takumi9942/flarum-ext-japanese
      php flarum cache:clear

      I joined Flarum Language Project and package name was changed !
      Please use following new command to install/update this extension 😄

      • アップデート | Update

        composer update flarum-lang/japanese
        php flarum cache:clear
      • アンインストール | Uninstall

        composer remove flarum-lang/japanese