Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

expose translations object or add exists method on Translator #35

Open
Jonoh89 opened this issue Sep 26, 2016 · 1 comment
Open

expose translations object or add exists method on Translator #35

Jonoh89 opened this issue Sep 26, 2016 · 1 comment

Comments

@Jonoh89
Copy link

Jonoh89 commented Sep 26, 2016

Currently the translator will return the key if the translation does now exist, this is not a good enough check for existence as the translation could potentially be equal to the key. I need this to show a default message if an error from a server is not recognised.

We should allow direct access to the resources through the Translator singleton or add an existence method.

@ahumphreys87
Copy link
Member

@Jonoh89 interested in adding a PR for this. Im 👍 for it as a feature, a hasTranslation method could work

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants