Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function for determining whether an object is localized #121

Open
jimmythomson opened this issue Jan 17, 2022 · 0 comments
Open

Add function for determining whether an object is localized #121

jimmythomson opened this issue Jan 17, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jimmythomson
Copy link
Member

If a property is localised, we get back an object that looks like this...

{
  en: 'English text',
  fr: 'French text,
  fr-CA: 'French Canadian text'
}

In order to know whether an object is truly a localised object, we need to validate that all of the keys are valid locales.

We need a function that encapsulates this piece of logic.

@jimmythomson jimmythomson added the enhancement New feature or request label Jan 17, 2022
@jimmythomson jimmythomson self-assigned this Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant