मुख्य सामग्री पर जाएँ
Skillpedia
वेबसाइट और UI (frontend)7.6k · #13165

internationalization

यह क्या करती है

यह स्किल बताती है कि यूज़र को दिखने वाला टेक्स्ट ऐप की अनुवाद कैटलॉग में कैसे रखें। इसमें कौन सी भाषाएं इस्तेमाल होती हैं, keys के नाम कैसे रखे जाते हैं और अनुवाद जांच कैसे चलती है, यह शामिल है। यह एक से ज़्यादा भाषा वाले ऐप में टेक्स्ट जोड़ने या बदलने वाले डेवलपर्स के लिए है।

कब इस्तेमाल करें

  • ✓जब आप ऐप में दिखने वाला टेक्स्ट, लेबल, toast या खाली स्थिति जोड़ते या बदलते हैं।
  • ✓जब किसी ऐप ने अतिरिक्त भाषाएं चुनी हैं और उनके कैटलॉग अपडेट होने हैं।
  • ✓जब भाषा पिकर में ऐसी भाषाएं दिखें जिन्हें ऐप सचमुच लोड नहीं कर सकता।

Skill का लिंक

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/internationalization/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/internationalization/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“सेटिंग्स पेज पर एक नया लेबल जोड़िए और फ़्रेंच तथा जर्मन अनुवाद भी अपडेट कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट पहले अंग्रेज़ी कैटलॉग में टेक्स्ट जोड़ता है, फिर केवल वही locales अपडेट करता है जो ऐप सूचीबद्ध करता है। वह वही keys और placeholders रखता है और i18n जांच चलाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Internationalization — opt-in translations

English (en-US) is the default source locale. Do not create or update additional locale catalogs unless the app's agent-native.config.ts lists them under translations.locales.

Rule

Visible framework/template UI copy belongs in the app's i18n catalog, not inline in components. When you add or edit UI text, update the English source catalog first, then update only the locale catalogs listed in translations.locales, and run the i18n guard.

Catalogs

Templates use app/i18n/:

  • en-US.ts is the canonical source tree and fallback.
  • Other locale files keep the same non-plural keys and the same placeholders.
  • index.ts exports an AgentNativeI18nCatalog with English bundled and non-English catalogs loaded by dynamic import.

Use BCP-47 filenames from the supported set: en-US, zh-CN, es-ES, fr-FR, de-DE, ja-JP, ko-KR, pt-BR, hi-IN, ar-SA.

If an app only ships translations for a subset of that set, set supportedLocales on the AgentNativeI18nCatalog to that subset. Without it, <LanguagePicker /> lists every framework-supported locale regardless of whether loadMessages can actually resolve it.

UI Pattern

  • Wrap apps with AppProviders i18n={{ catalog: i18nCatalog }}.
  • Read strings with useT() and keep keys stable.
  • Apps expose a /settings route without a sidebar item for it: Settings opens from the account menu in the sidebar footer and from ⌘, (Ctrl+, elsewhere). Core's Account › Preferences page already renders the Interface language row (with Timezone; both are the per-user localization record, so a change applies in every app); don't add a second picker to an app's Settings page. Keep the header language icon only as a quick-access shortcut.
  • Don't add an "Agent settings" row to an app's settings page: the Agent group's pages are part of Settings. Link to a page with buildSettingsRoute(page, sub?), and localize the link's label.
  • Settings copy follows the same rules: page and group labels are core agentChat.settingsShell.* keys, and an app's own rows, areas, and search entries take already translated strings from the app catalog.
  • Use useFormatters() for dates, numbers, relative time, and lists instead of embedding formatted values in translation strings.
  • Do not translate stable identifiers: action names, route names, enum values, app-state keys, database values, protocol fields, env var names, or provider names.

Plurals And Placeholders

Plural strings use i18next/CLDR suffixes. Do not force every locale to copy English plural categories:

  • English uses _one and _other.
  • Chinese and Japanese usually use _other.
  • Arabic uses _zero, _one, _two, _few, _many, and _other.

Keep interpolation placeholders identical across locales, such as {{count}}, {{name}}, or ICU-style {count} arguments.

RTL

New UI should be RTL-safe. Prefer logical CSS utilities/properties such as ms-*, me-*, ps-*, pe-*, start-*, end-*, text-start, and text-end when direction matters. Avoid hardcoded left/right positioning for new localized UI unless it is genuinely physical.

Verification

Run:

pnpm guard:i18n-catalogs

For broader changes, also run the affected template tests and pnpm typecheck. Machine translation is only a starting point; high-visibility strings need human review.

अक्सर पूछे जाने वाले सवाल

क्या अनुवाद डिफ़ॉल्ट रूप से चालू है?

नहीं। ऐप को अपनी कॉन्फ़िगरेशन में अन्य locales के लिए opt in करना होता है। अंग्रेज़ी डिफ़ॉल्ट है।

क्या मुझे हर भाषा की फ़ाइल बदलनी होगी?

केवल उन locales की जो ऐप में सक्रिय सूचीबद्ध हैं। अंग्रेज़ी कैटलॉग हमेशा पहले अपडेट होती है।

क्या मैं टेक्स्ट सीधे कंपोनेंट में लिख सकता हूं?

स्किल कहती है कि दिखने वाला टेक्स्ट कैटलॉग में रहना चाहिए, कंपोनेंट के भीतर inline नहीं।

जानकारी

लेखक का मूल विवरण

How to add or edit localized UI copy in agent-native apps. Use when adding, removing, or changing user-visible interface text, prompts, toasts, labels, empty states, or date/number/list formatting. Apps opt in to additional locales from `agent-native.config.ts`.

repo: BuilderIO/agent-native

लोकप्रियता

GitHub स्टार
7.6k
रैंकिंग में स्थान
#13165
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

design-exploration

7.6k

यह आपके एजेंट को UI के कई डिज़ाइन विकल्प साथ-साथ दिखाने, आपकी पसंद चुनवाने और फिर चुने डिज़ाइन को सुधारने में मदद करती है।

डिज़ाइनइंटरफ़ेस (UI/UX)

visual-edit

7.6k

यह आपके एजेंट को चल रहे लोकल ऐप को विज़ुअल एडिटर में खोलने देती है, ताकि आप उसकी असली स्क्रीन एक साथ देखकर संपादित कर सकें।

डिज़ाइनइंटरफ़ेस (UI/UX)

turn-into-app

7.6k

यह किसी वर्कफ़्लो, स्प्रेडशीट या प्रोजेक्ट को भरी हुई स्क्रीन वाले विज़ुअल ऐप में बदलती है, जिसके कंट्रोल के पीछे एजेंट काम करता है।

कोडिंगसामान्य कोडिंग

visual-plan

7.6k

यह सादे टेक्स्ट वाली योजना को डायग्राम, फ़ाइल नक्शों, कोड अंश और खुले सवालों वाली इंटरैक्टिव विज़ुअल योजना में बदलती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

मिलती-जुलती skills