-
Notifications
You must be signed in to change notification settings - Fork 140
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
Conflict with i18n library #49
Comments
Hi! I've solve this problem with the next line: var i18n = typeof i18n !== 'object' ? {phonenumbers: {}} : Object.create(i18n, {'phonenumbers': { value: {}}}); Maybe there is a better solution but I've tried it in my project and it works perfectly. If anyone find a better solution, I will be enthusiastic to know it! Thanks and good morning. |
hi there.. where did you put this line of code ?? really need help |
Hi @FarhanJohari, you have to put this line in i18n var definition. |
hi again.. @frankPairs sorry for asking again... actually im not understand which var definition that u mention.. |
Hi @FarhanJohari. For instance, change line 4297 of phone-format.js file by this line: var i18n = typeof i18n !== 'object' ? {phonenumbers: {}} : Object.create(i18n, {'phonenumbers': { value: {}}}); |
Hi!!
I've found a problem with phoneformat library.
I've used http://i18next.com/ library to do translations The problem is that it also declares a i18n global variable as phoneformat.js then this global variable is overwritten and the library doesn't work correctly.
I think that you could change this global variable name for other because i18n is a common library to manage translations and a lot of people use it.
Thank you.
The text was updated successfully, but these errors were encountered: