JonathanXDR / Application-Website-Frontend

My Personal Website
https://jonathan-russ.com
MIT License
1 stars 2 forks source link

Bitte eine kleine Hilfe #62

Closed 4444TENSEI closed 1 month ago

4444TENSEI commented 1 month ago

Sie haben einen tollen Job gemacht und es ist einfach zu schön. Dies ist die beste persönliche Website, die ich je gesehen habe. Ich möchte wissen, was zu tun ist, wenn ich eine Sprachwechsel-Option für unser Land hinzufügen möchte? Muss ich die JSON-Datei nur direkt bearbeiten? Ich war nicht i18n ausgesetzt, also möchte ich eine Frage stellen

JonathanXDR commented 1 month ago

Thank you! Feel free to write in English if that’s easier for you. To retrieve objects and arrays directly from the JSON files, I had to use the vueI18n key (as referenced in i18n.config.ts) in my nuxt.config.ts. Without this, you would only get an abstract syntax tree of translations. I hope this answers your question correctly, but if not, please don’t hesitate to ask for further clarification.

4444TENSEI commented 1 month ago

Thank you! Feel free to write in English if that’s easier for you. To retrieve objects and arrays directly from the JSON files, I had to use the vueI18n key (as referenced in i18n.config.ts) in my nuxt.config.ts. Without this, you would only get an abstract syntax tree of translations. I hope this answers your question correctly, but if not, please don’t hesitate to ask for further clarification.

Thank you very much. I think I know what to do now