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
Context: I was trying to mock "translate()" first when writing Jest tests but realized that I needed the full formatting implementation.
Since the server repo JS code is not available within the context of app tests, I wanted to use the full implementation of nextcloud-l10n. But it failed because that one is also relying on server repo JS code.
Once this ticket is solved it will be possible to use translate() and translatePlural() without mocking.
This is also how we moved out most of the other packages. The only thing that will most likely have to remain in server is the code that allows registration of translation strings from the js files that we load.
Currently, the library relies on an existing global function "translate" that is defined in the server's OC namespace.
We should move it here.
OC.L10N.translate
implementationThe text was updated successfully, but these errors were encountered: