add-app-language

Featured

Add a supported application language or regional locale to all-api-hub across application and extension runtimes. Not for ordinary translation-copy edits.

AI & Automation 4,850 stars 326 forks Updated today AGPL-3.0

Install

View on GitHub

Quality Score: 90/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Add App Language ## Core principle Treat a new language as a cross-runtime compatibility feature. Define one locale contract, then make application resources, browser manifests, auxiliary locale libraries, and tests agree with it. ## Workflow 1. Establish the current baseline and locale contract. - Run `git status --porcelain` and preserve unrelated work and index state. - Inspect `src/constants/i18n.ts`, `src/utils/i18n/`, `src/components/LanguageSwitcher.tsx`, `i18next.config.ts`, `src/locales/`, `src/public/_locales/`, `tests/utils/i18nLocaleValidation.test.ts`, and nearby language-specific tests. - Search for locale-keyed runtime data and fallback resolvers outside `src/locales/`, including public JSON. Use the owning project workflow for independently managed surfaces instead of changing their translation or fallback contract incidentally. - Use current code, directories, and tests as the source of truth. Treat hard-coded language or namespace counts in prose as potentially stale. - Decide the canonical BCP 47 application tag, accepted browser or stored aliases, language-family and regional fallback behavior, Chrome underscore locale identifiers, documentation fallback, and available Day.js, date-fns, and natural-date parser support. - Ask only about unresolved choices that materially affect stored preferences, regional resource sharing, manifest coverage, documentation scope, or new dependencies. Reuse user decisions and established locale conven...

Details

Author
qixing-jk
Repository
qixing-jk/all-api-hub
Created
1 years ago
Last Updated
today
Language
TypeScript
License
AGPL-3.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

add-language

Use when adding a new interface language (locale) to the app, or when asked to translate the UI into another language. Covers the translation file, the two language pickers, the i18n resources, and the user doc that names the available languages.

108 Updated yesterday
ZoneMinder
AI & Automation Listed

expand-site-language

Add a NEW language to an EXISTING site across ALL its content, and translate the pages later without blocking. Use when the owner says "add Armenian / Spanish / French to the whole site", "make the site multilingual", "translate the whole site into X", "scale this to more languages", "add a new language to all pages/sections", or "add a locale". This is the ONLY correct way to add a language to existing content. Do NOT use compose-frozen-template, manage-content-collections, or owner_template_update_group for this — they cannot add a per-page locale to existing pages and will refuse or break the site. Two tools: owner_content_add_site_language (fan the language out, seeded with the default language so the site is valid instantly, no translation API) and owner_content_translate_pending (the non-blocking runner — you translate the strings later). Self- sufficient: no Hermes, no other agent.

58 Updated today
Fractera
AI & Automation Solid

solo-i18n

Use when "add languages", "translate the app", "localization", "i18n", "make it multilingual", or when UI strings are hardcoded and a second language is coming.

18 Updated today
fortunto2