internationalization | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / internationalization

internationalization

maintained by ykzts

star 0 account_tree 0 verified_user MIT License
bolt View GitHub

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>
  );
}

参考

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 0
GitHub Forks 0
Created Jan 2026
Last Updated 5 months ago
tools tools documents

Related Skills

humanizer
chevron_right
zlibrary-to-notebooklm
chevron_right
bm-md
chevron_right
annas-to-notebooklm
chevron_right
markdown-exporter
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.