Feature #1876
closedLanguage configuration
Description
- Set default ✅
- Selected language should be persitent through the use of local storage. ✅
- English & German are supported out of the box. Others can be added the same way. ✅
Updated by Moritz Großfurtner almost 2 years ago
Currently we are using vue i18n and it works well. I've discovered https://v8.i18n.nuxtjs.org/ which might be usefull if we want better SEO depending on the language as well as a few other features, though I'm not sure if it is necessary for our use case.
E.g. it also allows for persisting the language selection. However, it does so through the use of cookies, so I'm not sure if we want that.
Updated by Moritz Großfurtner almost 2 years ago
It might also be a good idea to use this: https://github.com/olizilla/lol
For creating a list of locales to select from. Especially when adapting OAD for a different Project with more supported languages.
Updated by Moritz Großfurtner almost 2 years ago
- Status changed from Acknowledged to Resolved
It should work now, but if we decide to go with nuxt-i18n I'd need to look into it again.
Updated by Moritz Großfurtner almost 2 years ago
- Assignee set to Moritz Großfurtner
Updated by Alexander Watzinger almost 2 years ago
I kind of avoid SEO and cookie topics in the backend but of course you are right, for presentation sites this absolutely makes sense.
SEO can't hurt for public available websites that present project results, when using cookies we will need a cookie disclaimer thingy but I guess, we will need that in the long run anyway.
Sadly I can't comment on the technical site of things but I added other frontend developers as watcher, maybe they want to comment too. You can always add watcher yourself in case you think this might be interesting for others.
Thank you for looking into this.
Updated by Moritz Großfurtner almost 2 years ago
- Assignee deleted (
Moritz Großfurtner)
Thanks for the feedback and adding the others!
I'd try to avoid cookies as much as possilbe as well, but yes if we end up using cookies we'll defenitely need to add a disclaimer.
Updated by Moritz Großfurtner over 1 year ago
- Description updated (diff)
What still needs to be done is the integration of the navigation for nuxt content pages taking into account the selected locale.
Updated by Moritz Großfurtner over 1 year ago
- Status changed from Resolved to In Progress
Updated by Moritz Großfurtner over 1 year ago
At the moment new locales can only be added by us in the main repository. Should it be possible for our partners to add their own .json files containing other locales? At the moment that would be needed to enable them to add support for multiple languages.
Additionally: How do we handle content in other languages that aren't supported in the user interface. Do we allow it?
Updated by Alexander Watzinger over 1 year ago
- Precedes Feature #2044: Additional language features added
Updated by Alexander Watzinger over 1 year ago
I would say for completion of this issue it should be possible to set a default display language in the user managed configuration.
Adding additional content languages even if no user interface translations are available has no high priority so I created an extra issue in the wishlist (#2044).
Updated by Moritz Großfurtner about 1 year ago
- Status changed from In Progress to Closed
Implemented as planned and can be expanded upon in further features as suggested by @Alexander Watzinger .