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

Method extend does not exist on return value of i18n.create #24

Closed
ogallagher opened this issue Feb 23, 2024 · 0 comments
Closed

Method extend does not exist on return value of i18n.create #24

ogallagher opened this issue Feb 23, 2024 · 0 comments

Comments

@ogallagher
Copy link
Contributor

ogallagher commented Feb 23, 2024

I'm using i18n as a frontend dependency using legacy syntax (load into global scope as i18n).

When I run

let translator = i18n.create({values: {k1: 'v1'}})
translator.extend((a, b, c, d) => {return 'example extension'}) // fails here

I see

TypeError: translator.extend is not a function

So it appears that the extension syntax as documented will not work.

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

No branches or pull requests

1 participant