element-plus-i18n

element-plus-i18n is a skill for Claude Code, Codex from jiaiyan/element-plus-skills. It costs 34 tokens per session (2,130 once invoked), scanned A, original, MIT.

A setup guide for translating Element Plus, a Vue user-interface component library, into different languages and changing its locale settings.

In plain words
What is it for?
Use it to set a default language, support multiple languages, add custom translations, or switch languages in a Vue app.
Why use it?
It removes the need to work out how language-specific labels, dates, and dynamic language switching fit into Element Plus.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to set a default language, support multiple languages, add custom translations, or switch languages in a Vue app.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiaiyan/element-plus-skills/element-plus-i18n
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jiaiyan/element-plus-skills --skill element-plus-i18n
Clone the repo
git clone --depth 1 https://github.com/jiaiyan/element-plus-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for element-plus-i18n

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiaiyan/element-plus-skills/element-plus-i18n/github.svg)](https://agentmods.dev/skills/jiaiyan/element-plus-skills/element-plus-i18n)
Your own site
<a href="https://agentmods.dev/skills/jiaiyan/element-plus-skills/element-plus-i18n"><img src="https://agentmods.dev/badge/skills/jiaiyan/element-plus-skills/element-plus-i18n/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for element-plus-i18n

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiaiyan/element-plus-skills/element-plus-i18n"><img src="https://agentmods.dev/badge/skills/jiaiyan/element-plus-skills/element-plus-i18n.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,130 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.02130
Opus 5 $0.00017 $0.01065
Sonnet 5 $0.00007 $0.00426
Haiku 4.5 $0.00003 $0.00213

Measured 6d ago against content hash ef834747525d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

element-plus-i18n scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

element-plus-i18n/SKILL.md · 355 lines

How it starts

The opening of the file, as written. The whole thing — 355 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Element Plus Internationalization

This skill provides comprehensive guidance for configuring internationalization (i18n) in Element Plus applications.

When to Invoke

Invoke this skill when:

  • User wants to change the default language
  • User needs to configure multiple languages
  • User asks about date/time localization
  • User wants to add custom translations
  • User needs to switch languages dynamically

Default Language

Element Plus components use English by default. To use other languages, you need to configure the locale.

Configuration Methods

1. Global Configuration

Configure the locale when registering Element Plus:

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import App from './App.vue'

const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})

2. ConfigProvider Component

Use el-config-provider for dynamic locale switching:

<template>
  <el-config-provider :locale="locale">
    <app />
  </el-config-provider>
</template>

<script setup>
import { ref } from 'vue'
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import en from 'element-plus/es/locale/lang/en'

const locale = ref(zhCn)

const switchLanguage = (lang) => {
  locale.value = lang === 'zh' ? zhCn : en
}
</script>

3. CDN Usage

For CDN-based projects:

<script src="//unpkg.com/element-plus/dist/locale/zh-cn"></script>
<script>
  app.use(ElementPlus, {
    locale: ElementPlusLocaleZhCn,
  })
</script>

Date and Time Localization

Element Plus uses Day.js for date/time management in components like DatePicker. You must import Day.js locale separately:

import 'dayjs/locale/zh-cn'

Complete Example with DatePicker

<template>
  <el-config-provider :locale="locale">
    <el-date-picker
      v-model="date"
      type="date"
      placeholder="Pick a day"
    />
  </el-config-provider>
</template>

<script setup>
import { ref } from 'vue'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'dayjs/locale/zh-cn'

const locale = ref(zhCn)
const date = ref('')
</script>

Read the full file on GitHub · 355 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 355 lines · 34 tokens per session scan A ef834747525d

Subscribe to this mod's changes

element-plus-i18n is a skill published in the GitHub repository jiaiyan/element-plus-skills (25 stars, last pushed 6mo ago), licensed MIT. It adds 34 tokens to every session and 2,130 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

software-localisation

Implements production-grade i18n/l10n for React, Vue, Angular, and Next.js with ICU format and RTL support. Use when setting up or debugging localisation.

vasilyu1983/AI-Agents-public · 39 tokens

web-i18n-vue-i18n

Type-safe i18n for Vue 3 Composition API — useI18n, pipe-syntax plurals, i18n-t/d/n components, lazy-loaded locales. Load when a project imports vue-i18n.

agents-inc/skills · 55 tokens

vue-i18n-skilld

Internationalization plugin for Vue.js. ALWAYS use when writing code importing "vue-i18n". Consult for debugging, best practices, or modifying vue-i18n, vue i18n.

skilld-dev/vue-ecosystem-skills · 46 tokens

nuxt-i18n

Internationalize Nuxt applications with @nuxtjs/i18n. Use when configuring locales or browser detection, translating messages or routes, building locale switchers, handling fallbacks, lazy-loading messages, or adding locale SEO.

onmax/nuxt-skills · 51 tokens

i18n-expert

This skill should be used when setting up, auditing, or enforcing internationalization/localization in UI codebases (React/TS, i18next or similar, JSON locales), including installing/configuring the i18n framework, replacing hard-coded strings, ensuring en-US/zh-CN coverage, mapping error codes to localized messages…

daymade/claude-code-skills · 83 tokens

svelte-advanced-datatable-state

Configure persistence tiers (transient snapshot/url/none + persistent localStorage/sessionStorage/none) and internationalisation (built-in messageConfig, svelte-i18n format store, or custom MessageFormatter) for svelte-advanced-datatable. Use when persisting table state across reloads or back-navigation, sharing a…

Kage0x3B/svelte-advanced-datatable · 110 tokens