Back to list
ykzts

internationalization

by ykzts

Real-time bingo application for streamers and communities.

0🍴 0📅 Jan 22, 2026

SKILL.md


name: internationalization description: Implement i18n using next-intl. Manage multilingual content in en.json and ja.json. Apply translation patterns for UI and dynamic content. metadata: author: Bingify version: "1.0"

Internationalization (i18n)

このスキルは、Bingifyの多言語対応とメッセージ管理をカバーします。

概要

Bingifyはnext-intlを使用して、英語 (en) と日本語 (ja) をサポートしています。

ロケール別ルート

/                   # 英語版ホーム
/dashboard          # 英語版ダッシュボード
/ja/                # 日本語版ホーム
/ja/dashboard       # 日本語版ダッシュボード

メッセージファイル

messages/ja.JSON

{
  "common": {
    "app_name": "Bingify",
    "sign_in": "ログイン",
    "home": "ホーム"
  }
}

クライアントコンポーネント

"use client";

import { useTranslations } from "next-intl";

export function Dashboard() {
  const t = useTranslations("dashboard");
  return <h1>{t("title")}</h1>;
}

サーバーコンポーネント

import { getTranslations } from "next-intl/server";

export async function Page() {
  const t = await getTranslations("dashboard");
  return <h1>{t("title")}</h1>;
}

言語選択

"use client";

import { useLocale } from "next-intl";
import { useRouter } from "next-intl/navigation";

export function LanguageSwitcher() {
  const locale = useLocale();
  const router = useRouter();

  return (
    <button onClick={() => router.push("/", { locale: "ja" })}>日本語</button>
  );
}

参考

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon