mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: add inlang to make the contribution of translations easier (#2262)
* feat: add inlang.config.js * inlang: update translations * inlang: update translations * inlang: update translations * inlang: update translations * inlang: update translations * inlang: update translations * inlang: update translations * inlang: update translations * inlang: update translations --------- Co-authored-by: NilsJacobsen <>
This commit is contained in:
parent
43a8335fd4
commit
d5ccc20e04
@ -70,7 +70,8 @@
|
|||||||
"name": "Debug-Informationen",
|
"name": "Debug-Informationen",
|
||||||
"success": "Debug-Informationen in die Zwischenablage kopiert!",
|
"success": "Debug-Informationen in die Zwischenablage kopiert!",
|
||||||
"fail": "Debug-Informationen können nicht in die Zwischenablage kopiert werden"
|
"fail": "Debug-Informationen können nicht in die Zwischenablage kopiert werden"
|
||||||
}
|
},
|
||||||
|
"shortcuts": "Abkürzungen"
|
||||||
},
|
},
|
||||||
"menuAppHeader": {
|
"menuAppHeader": {
|
||||||
"addPageTooltip": "Schnell eine Seite innerhalb hinzufügen",
|
"addPageTooltip": "Schnell eine Seite innerhalb hinzufügen",
|
||||||
@ -90,11 +91,13 @@
|
|||||||
"inlineCode": "Inline-Code",
|
"inlineCode": "Inline-Code",
|
||||||
"quote": "Zitat",
|
"quote": "Zitat",
|
||||||
"header": "Überschrift",
|
"header": "Überschrift",
|
||||||
"highlight": "Hervorhebung"
|
"highlight": "Hervorhebung",
|
||||||
|
"color": "Farbe"
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
"lightMode": "In den hellen Modus wechseln",
|
"lightMode": "In den hellen Modus wechseln",
|
||||||
"darkMode": "In den dunklen Modus wechseln"
|
"darkMode": "In den dunklen Modus wechseln",
|
||||||
|
"openAsPage": "Als Seite öffnen"
|
||||||
},
|
},
|
||||||
"contactsPage": {
|
"contactsPage": {
|
||||||
"title": "Kontakte",
|
"title": "Kontakte",
|
||||||
@ -145,6 +148,12 @@
|
|||||||
"sideBar": {
|
"sideBar": {
|
||||||
"openSidebar": "Open sidebar",
|
"openSidebar": "Open sidebar",
|
||||||
"closeSidebar": "Close sidebar"
|
"closeSidebar": "Close sidebar"
|
||||||
|
},
|
||||||
|
"moreAction": {
|
||||||
|
"small": "klein",
|
||||||
|
"medium": "mittel",
|
||||||
|
"large": "groß",
|
||||||
|
"fontSize": "Schriftgröße",
|
||||||
|
"import": "Importieren"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -385,8 +385,8 @@
|
|||||||
"couldNotFetchImage": "Could not fetch image",
|
"couldNotFetchImage": "Could not fetch image",
|
||||||
"imageSavingFailed": "Image Saving Failed",
|
"imageSavingFailed": "Image Saving Failed",
|
||||||
"addIcon": "Add Icon",
|
"addIcon": "Add Icon",
|
||||||
"coverRemoveAlert" : "It will be removed from cover after it is deleted.",
|
"coverRemoveAlert": "It will be removed from cover after it is deleted.",
|
||||||
"alertDialogConfirmation" : "Are you sure, you want to continue?"
|
"alertDialogConfirmation": "Are you sure, you want to continue?"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -146,5 +146,4 @@
|
|||||||
"openSidebar": "Open sidebar",
|
"openSidebar": "Open sidebar",
|
||||||
"closeSidebar": "Close sidebar"
|
"closeSidebar": "Close sidebar"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
29
inlang.config.js
Normal file
29
inlang.config.js
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
|
||||||
|
// @ts-check
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type { import("@inlang/core/config").DefineConfig }
|
||||||
|
*/
|
||||||
|
export async function defineConfig(env) {
|
||||||
|
const plugin = await env.$import(
|
||||||
|
"https://cdn.jsdelivr.net/gh/samuelstroschein/inlang-plugin-json@1.1.1/dist/index.js"
|
||||||
|
);
|
||||||
|
|
||||||
|
const { default: standardLintRules } = await env.$import(
|
||||||
|
"https://cdn.jsdelivr.net/gh/inlang/standard-lint-rules@1.1.1/dist/index.js"
|
||||||
|
);
|
||||||
|
|
||||||
|
const pluginConfig = {
|
||||||
|
pathPattern: "./frontend/appflowy_flutter/assets/translations/{language}.json",
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
referenceLanguage: "en",
|
||||||
|
languages: await plugin.getLanguages({ ...env, pluginConfig }),
|
||||||
|
readResources: (args) => plugin.readResources({ ...args, ...env, pluginConfig }),
|
||||||
|
writeResources: (args) => plugin.writeResources({ ...args, ...env, pluginConfig }),
|
||||||
|
lint: {
|
||||||
|
rules: [standardLintRules()],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user