Skip to content

Instantly share code, notes, and snippets.

@egoist egoist/translate.js
Created Oct 30, 2014

Embed
What would you like to do?
Created by Miu https://miu.0x142857.com
<span class="hljs-variable">$translateProvider</span>.translations(<span class="hljs-string">'cn'</span>, {
<span class="hljs-string">'GLOBAL'</span>:{
<span class="hljs-string">'save'</span>: <span class="hljs-string">'保存'</span>,
<span class="hljs-string">'cancel'</span>: <span class="hljs-string">'取消'</span>,
<span class="hljs-string">'confirm'</span>: <span class="hljs-string">'确定'</span>
},
<span class="hljs-string">'NAV'</span>:{
<span class="hljs-string">'file'</span>: {
<span class="hljs-string">'title'</span>: <span class="hljs-string">'文件'</span>,
<span class="hljs-string">'option'</span>: {
<span class="hljs-string">'new'</span>: <span class="hljs-string">'新建'</span>,
<span class="hljs-string">'open'</span>: <span class="hljs-string">'打开'</span>,
<span class="hljs-string">'save'</span>: <span class="hljs-string">'保存'</span>,
<span class="hljs-string">'saveas'</span>: <span class="hljs-string">'另存为'</span>
}
},
<span class="hljs-string">'about'</span>: <span class="hljs-string">'关于'</span>
},
<span class="hljs-string">'SIDEBAR'</span>:{
<span class="hljs-string">'setting'</span>: <span class="hljs-string">'设置'</span>,
<span class="hljs-string">'cloud'</span>: {
<span class="hljs-string">'title'</span>: <span class="hljs-string">'云服务'</span>,
<span class="hljs-string">'temp'</span>: <span class="hljs-string">'告诉我们你需要什么样的云服务'</span>
},
<span class="hljs-string">'colorful'</span>: <span class="hljs-string">'开启多彩的世界'</span>,
<span class="hljs-string">'customcss'</span>: <span class="hljs-string">'自定义 CSS'</span>,
<span class="hljs-string">'github'</span>: <span class="hljs-string">'连接到 Github'</span>,
<span class="hljs-string">'preview'</span>: {
<span class="hljs-string">'title'</span>: <span class="hljs-string">'预览界面样式'</span>,
<span class="hljs-string">'content'</span>: <span class="hljs-string">'请选择 %APP DIR%/theme/preview/ 下的 CSS 文件'</span>
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.