I am new to svelte and want to write a simple multilanguage script.
my data:
export const content={"intro": "De Intro","introEn": "En Intro",}
in my template i am using:
<p>{t("content.intro")}</p>
and in the function i want to append "En" to load the english text
export const t = (i) => { return(i+"En");};
the result is that the browser prints
content.introEn
how can I show the data from the object?