Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): database example internationalization #782

Merged
merged 2 commits into from
Feb 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions web/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
"NoInfo": "No information",
"RefreshDataSuccess": "data refreshed",
"Language": "Language",
"database example": "database example"
"update success": "update completed",
"Take me home": "Take me home",
"404Message": "We can't find that page",
Expand Down
1 change: 1 addition & 0 deletions web/public/locales/zh-CN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
"NoInfo": "暂无信息",
"RefreshDataSuccess": "数据刷新成功",
"Language": "语言",
"database example": "database 示例"
"update success": "更新成功",
"Take me home": "返回首页",
"404Message": "找不到当前内容",
Expand Down
1 change: 1 addition & 0 deletions web/public/locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
"NoInfo": "暂无信息",
"RefreshDataSuccess": "数据刷新成功",
"Language": "语言",
"database example": "database 示例"
"update success": "更新成功",
"Take me home": "返回首页",
"404Message": "找不到当前内容",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { t } from "i18next";

const functionTemplates = [
{
label: "hello laf",
Expand All @@ -10,7 +12,7 @@ export async function main(ctx: FunctionContext) {
`,
},
{
label: "database 示例",
label: t("database example"),
value: `import cloud from '@lafjs/cloud'

const db = cloud.database()
Expand Down