Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

language-integrator

БесплатноБез исполняемых скриптовНе проверен

Add or localize LenserFight for a new language or locale. Use when asked to add, implement, port, or support translations — for example "add French", "support…

conectlensот conectlens★ 18 звёзд на GitHub

Об этом скилле

Language Integrator

Implement full i18n support for $ARGUMENTS across the LenserFight monorepo.

Parse $ARGUMENTS

Derive three values from $ARGUMENTS:

Value Example (French) Example (Arabic)
LOCALE fr ar
NAME Français العربية
DIR ltr rtl

If $ARGUMENTS contains only a language name (e.g. "French"), infer LOCALE from ISO 639-1. If $ARGUMENTS contains only a code (e.g. "fr"), infer NAME and DIR. RTL languages: Arabic (ar), Hebrew (he), Persian (fa), Urdu (ur).

Architecture summary

apps/landing/src/
  i18n.ts                        ← SUPPORTED_LANGUAGES + init — register here
  locales/
    en.json                      ← English source of truth
    LOCALE.json                  ← create: mirror en.json, translate all values
    en/policies/                 ← English legal markdown
    LOCALE/policies/             ← create: translated legal markdown (if applicable)

apps/web/src/
  i18n.ts                        ← SUPPORTED_LANGUAGES + init — register here
  locales/
    en.json                      ← English source of truth
    LOCALE.json                  ← create: mirror en.json, translate all values

apps/docs/.vitepress/config.ts   ← add hreflang entry + locales entry

docs/
  LOCALE/
    index.md                     ← create: VitePress locale home (hero in native lang)
    tutorials/getting-started/
      overview.md                ← create: getting-started stub with English fallback link

supabase/seeds/01_core_languages.sql  ← authoritative language registry — add if missing

Auth (apps/auth) and CLI (apps/cli) have no i18n infrastructure yet. If the request targets those surfaces, read REFERENCE.md for the scaffold templates.

Procedure

1 — Verify language registry

Read supabase/seeds/01_core_languages.sql. If LOCALE is missing, add inside the VALUES (...) block:

('LOCALE', 'NAME_EN', 'NAME', 'DIR', true),

2 — Translate landing locale file

Read apps/landing/src/locales/en.json in full. Create apps/landing/src/locales/LOCALE.json mirroring every key. Translate all values. Do not rename or add keys. Preserve {{placeholder}} markers exactly.

Register in apps/landing/src/i18n.ts:

import LOCALE from './locales/LOCALE.json'

export const SUPPORTED_LANGUAGES = [
  { code: 'en', label: 'English' },
  { code: 'tr', label: 'Türkçe' },
  { code: 'LOCALE', label: 'NAME' }, // ← add
] as const

i18n.init({
  resources: {
    en: { translation: en },
    tr: { translation: tr },
    LOCALE: { translation: LOCALE }, // ← add
  },
  supportedLngs: ['en', 'tr', 'LOCALE'], // ← add
  ...
})

3 — Translate web locale file

Read apps/web/src/locales/en.json in full. Create apps/web/src/locales/LOCALE.json using the same rules as step 2. Register in apps/web/src/i18n.ts following the identical pattern.

4 — Translate landing legal policies (if applicable)

Copy apps/landing/src/locales/en/policies/ structure to apps/landing/src/locales/LOCALE/policies/. Translate each .md file with legal-level precision. Preserve markdown structure exactly.

5 — Create docs locale root

Create docs/LOCALE/index.md using docs/tr/index.md as the structural reference:

---
lang: LOCALE
title: {Translated "LenserFight Documentation"}
layout: home

hero:
  name: LenserFight
  text: "{Translated tagline}"
  tagline: "{Translated sub-tagline}"
  actions:
    - theme: brand
      text: {Translated "Get Started"}
      link: /LOCALE/tutorials/getting-started/overview
    - theme: alt
      text: GitHub
      link: https://github.com/conectlens/lenserfight
---

> {Translation note in LOCALE language — include link to English version}

6 — Create getting-started stub

Create docs/LOCALE/tutorials/getting-started/overview.md:

---
lang: LOCALE
title: {Translated "Overview"}
---

# {Translated "Overview"}

> {Note that page is WIP — link to /tutorials/getting-started/overview}

{2–3 sentences about LenserFight in LOCALE}

**{Call-to-action for native speakers}** → [i18n guide](/how-to/contributors/i18n-guide)

7 — Register in VitePress config

In apps/docs/.vitepress/config.ts:

Add hreflang in head[], before x-default:

['link', { rel: 'alternate', hreflang: 'LOCALE', href: `${DOCS_HOST}/LOCALE/` }],

Add locale in locales{}, after tr:

LOCALE: {
  label: 'NAME',
  lang: 'LOCALE',
  link: '/LOCALE/',
  title: '{Translated site title}',
  description: '{Translated description}',
},

Update JSON-LD inLanguage array to include 'LOCALE'.

When the locale has enough content, add themeConfig with nav and sidebar following the tr locale as reference.

8 — Translation quality rules

  • Natural wording over word-for-word. Use the most idiomatic phrasing for the locale.
  • Preserve {{placeholder}} interpolation markers exactly.
Полный SKILL.md на GitHub

Установить language-integrator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlreferences/REFERENCE.md

FAQ

Что делает скилл language-integrator?

Add or localize LenserFight for a new language or locale. Use when asked to add, implement, port, or support translations — for example "add French", "support Arabic", or "translate to German" — even if the user never says "i18n", "locale", or "translation". $ARGUMENTS is the target language, locale code, or combined hint, such as "French", "fr", "Arabic RTL", or "es Spanish".

Как установить скилл language-integrator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл language-integrator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить language-integrator с