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
As asked in #11, then my question is pretty much the same, I use Nunjucks to have multiple themes on the same instance, that be, a frontend theme and a backend theme.
The language files should be a part of the theme directory and not something you store globally outside the theme itself.
As per now, the theme is defined in a middleware and set in a state, and used by all other elements.
As asked in #11, then my question is pretty much the same, I use Nunjucks to have multiple themes on the same instance, that be, a frontend theme and a backend theme.
The language files should be a part of the theme directory and not something you store globally outside the theme itself.
As per now, the theme is defined in a middleware and set in a state, and used by all other elements.
How would I go about accessing
ctx.state.theme
when initializingkoa-i18n
inside the middleware, pseudo example codeThe text was updated successfully, but these errors were encountered: