There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
feat(i18n): add codegen
lawvs08d331e56e05
diff --git a/libs/datasource/i18n/src/base.json b/libs/datasource/i18n/src/base.jsondeleted file mode 100644index e243d71db1..0000000000--- a/libs/datasource/i18n/src/base.json+++ /dev/null@@ -1,24 +0,0 @@-{- "Sync to Disk": "Sync to Disk",- "Share": "Share",- "WarningTips": {- "IsNotfsApiSupported": "Welcome to the AFFiNE demo. To begin saving changes you can SYNC DATA TO DISK with the latest version of Chromium based browser like Chrome/Edge",- "IsNotLocalWorkspace": "Welcome to the AFFiNE demo. To begin saving changes you can SYNC TO DISK.",- "DoNotStore": "AFFiNE is under active development and the current version is UNSTABLE. Please DO NOT store information or data"- },- "Layout": "Layout",- "Comment": "Comment",- "Settings": "Settings",- "ComingSoon": "Layout Settings Coming Soon...",- "Duplicate Page": "Duplicate Page",- "Copy Page Link": "Copy Page Link",- "Language": "Language",- "Clear Workspace": "Clear Workspace",- "Export As Markdown": "Export As Markdown",- "Export As HTML": "Export As HTML",- "Export As PDF (Unsupported)": "Export As PDF (Unsupported)",- "Import Workspace": "Import Workspace",- "Export Workspace": "Export Workspace",- "Last edited by": "Last edited by {{name}}",- "Logout": "Logout"-}diff --git a/libs/datasource/i18n/src/resources/index.ts b/libs/datasource/i18n/src/resources/index.tsnew file mode 100644index 0000000000..1d3e875c60--- /dev/null+++ b/libs/datasource/i18n/src/resources/index.ts@@ -0,0 +1,28 @@+// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.+// Run `pnpm run download-resources` to regenerate.+// To overwrite this, please overwrite download.ts+import en from './en.json';+import zh_Hans from './zh-Hans.json';++export const LOCALES = [+ {+ id: 1000016008,+ name: 'English',+ tag: 'en',+ originalName: 'English',+ flagEmoji: '🇬🇧',+ base: true,+ completeRate: 1,+ res: en,+ },+ {+ id: 1000016009,+ name: 'Simplified Chinese',+ tag: 'zh-Hans',+ originalName: '简体中文',+ flagEmoji: '🇨🇳',+ base: false,+ completeRate: 1,+ res: zh_Hans,+ },+] as const;diff --git a/libs/datasource/i18n/src/resources/zh.json b/libs/datasource/i18n/src/resources/zh-Hans.jsonsimilarity index 93%rename from libs/datasource/i18n/src/resources/zh.jsonrename to libs/datasource/i18n/src/resources/zh-Hans.jsonindex fe72ae542d..5122e4b881 100644--- a/libs/datasource/i18n/src/resources/zh.json+++ b/libs/datasource/i18n/src/resources/zh-Hans.json@@ -1,4 +1,5 @@{+ "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.": "","Sync to Disk": "同步到磁盘","Share": "分享","WarningTips": {