You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to navigate around the Nextcloud API, etc (which, IMHO, has some serious documentation blackouts 🙄), I find differences between your app and their sample Dashboard Widget in their new tutorials.
You have class WelcomeWidget implements IWidget, they have class SimpleWidget implements IAPIWidget. But maybe that's just me not understanding things 😎
What I'm somewhat confused about is how to get the current user's language and locale in your FileService.php and where it should be passed from/called on.
It'd be nice if the plugin could support a multi lingual situation.
Perhaps
filename.md
being the default, and then look forfilename_lang_locale.md
(based on the user's locale) and use if found.So, for a user with the Swedish language and Swedish locale settings
filename_sv_SE.md
would be used. If no such file exist,filename.md
is used.Since you can set language and locale independently of each other in NC, you'd need both.
Just a thought.
The text was updated successfully, but these errors were encountered: