百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

svelte-i18n

> 前端框架
开源

Svelte 的国际化库

1.4K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Svelte 的国际化库

> :information_source: `svelte-i18n` is due to some reworking, like moving from a singleton to instances. This will be worked on when I find the time and priority :pray: # svelte-i18n > Internationalization for Svelte. `svelte-i18n` helps you localize your app using the reactive tools Svelte provides. By using [stores](https://svelte.dev/docs#svelte_store) to keep track of the current `locale`, `dictionary` of messages and to `format` messages, we keep everything neat, in sync and easy to use on your svelte files. **Requirements** - Node: `>= 11.15.0` - Browsers: `Chrome 38+`, `Edge 16+`, `Firefox 13+`, `Opera 25+`, `Safari 8+`. ```svelte

{$_('page.home.title')}

{$_('page.home.nav', { default: 'Home' })} {$_('page.about.nav', { default: 'About' })} {$_('page.contact.nav', { default: 'Contact' })} ``` ```jsonc // en.json { "page": { "home": { "title": "Homepage", "nav": "Home" }, "about": { "title": "About", "nav": "About" }, "contact": { "title": "Contact", "nav": "Contact Us" } } } ``` - [Documentation / Getting Started](/docs/Getting%20Started.md) - [Usage with Svelte Kit](/docs/Svelte-Kit.md) - [i18n VSCode extension (3rd party)](https://github.com/antfu/i18n-ally)

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptdictionaryhacktoberfesti18ninternationalization

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架