Skip to content

Conversation

@nickvergessen
Copy link
Member

Instead of adding computed values for all the translations we can use a method.

I added the t and n as wrappers as part of a mixin. Should we do it this way, or does someone want to release this as an npm module which all apps then embed additionally to Vue. I guess we will never change the methods, but otherwise the mixin would be bound to a specific Nextcloud version.

@ChristophWurst @juliushaertl

Signed-off-by: Joas Schilling <coding@schilljs.com>
@juliusknorr
Copy link
Member

I'd say it makes sense for now to just keep them as a mixin for your app. We can still package it somehow together with the other frontend components, once we start working on them.

@nickvergessen nickvergessen merged commit 508c1f6 into master Feb 2, 2018
@nickvergessen nickvergessen deleted the bugfix/noid/use-mixin-for-translations branch February 2, 2018 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants