haydenull / logseq-plugin-markdown-table

Logseq markdown table editor.
MIT License
126 stars 9 forks source link

Translation Request: Use "Tabelle einfügen" instead of "markdown-table-editor" in DE #24

Open oliveremmler opened 1 year ago

oliveremmler commented 1 year ago

I would like to contribute to a german localization to the Markdown Table Editor. To make the use of the application better in the german, and maybe other languages, it would be good to have the action being performed with the mennu being mentioned.

Show "Tabelle einfügen" for German, "Insert table" for English instead of "markdown-table-editor".

See screenshot: CleanShot 2023-09-01 at 08 20 58

Please let me know if i can add or contribute some more. As well as when i have done wrong steps. I'm new here.

Best Regards Oliver

haydenull commented 1 year ago

Thanks for your kindness. You can create src/locales/de/translation.json and then import it into src/locales/i18n.js.

{
  "Markdown Table Editor": "Tabelle einfügen",
  // ...
}
// src/locales/i18n.js

import translationDE from "./de/translation.json";

const resources = {
  en: {
    translation: translationEN,
  },
  'zh-CN': {
    translation: translationZhCN,
  },
  de: {
    translation: translationDE,
  },
};