naive-ui-i18n

Configure Naive UI internationalization with NConfigProvider and createLocale for Vue 3 apps.

8|3|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/jiaiyan/naive-ui-skills --skill naive-ui-i18n
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: naive-ui-i18n
Source: https://github.com/jiaiyan/naive-ui-skills/tree/main/naive-ui-i18n
Command: npx skills add https://github.com/jiaiyan/naive-ui-skills --skill naive-ui-i18n

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Naive UI projects often require consistent, multilingual interfaces. This skill provides a structured approach to configure and manage i18n for Naive UI, enabling multiple languages and custom locale definitions.

Core Features & Use Cases

  • Locale provisioning via NConfigProvider and locale objects
  • Dynamic language switching with createLocale-based customization
  • Integration with Vue i18n for app-wide internationalization and locale synchronization
  • Custom locale creation from base locales to tailor strings for different apps
  • Real-world scenarios: multilingual dashboards, admin panels, and e-commerce UIs

Quick Start

Configure initial locale with NConfigProvider and load base locales like enUS/dateEnUS or zhCN/dateZhCN to enable language switching.

Frequently Asked Questions about naive-ui-i18n

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Naive UI localization for multi-language support in Vue 3?

To configure Naive UI localization in Vue 3, use NConfigProvider and load base locales like enUS or zhCN. This provides a structured framework to manage i18n and enable dynamic language switching across your application.

Can I integrate Naive UI i18n with vue-i18n for app-wide locale synchronization?

Yes, Naive UI i18n can integrate with vue-i18n for app-wide internationalization and locale synchronization. This ensures your multilingual dashboards and admin panels maintain consistent language states across UI components and app content.

How do I dynamically switch languages using Naive UI and createLocale?

Dynamic language switching uses createLocale-based customization to apply new locale objects dynamically. You can tailor strings by creating custom locales from base locales, updating the NConfigProvider to reflect the selected language instantly.

Do I need vue-i18n to implement locale provisioning with NConfigProvider?

No, vue-i18n is optional for locale provisioning. NConfigProvider can manage locale objects independently for multilingual interfaces, but integrating vue-i18n enables broader app-wide internationalization and content synchronization beyond UI components.

What is the best way to create custom locale definitions for a Naive UI dashboard?

The best way to create custom locale definitions is using createLocale to build from base locales like dateZhCN. This allows you to tailor specific strings and formatting rules to suit the exact requirements of different apps and e-commerce UIs.