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
Uncaught Error: vi is not available in the catalog #3295
Comments
Hello @tuanbbhero , thank you for reporting this issue. This comes from the ParsleyJS library that is used for messages in the validation process. Unfortunately it has not been translated to Vietnamese. In the case you wish to contribute you can on the original repo at https://github.com/guillaumepotier/Parsley.js/blob/master/CONTRIBUTING.md or here sharing a vi.js file formatted as the other files you will find in this repo at assets/js/i18n/. In the case you wish to contribute for general Vietnamese translation of the plugin, you can use https://translate.wordpress.org/projects/wp-plugins/caldera-forms/ |
@New0 Thanks. I'm not developer.
Is that right? Thank you very much <3 |
Hey @tuanbbhero , I realize my answer was misleading, I'm sorry. To fix this precise error message shown in the console logs ( Uncaught Error: vi is not available in the catalog ) you need to add a ( valid ) vi.js file within the assets/js/i18n directory, that is correct. The files within the assets/js/i18n directory hold the translations for forms validation messages, it is not so long and can be useful to your users if the form catches a validation issue before submission. The link to Translate.WordPress.org was just to show the way to translate the plugin and is not related to the precise issue you shared here. In the case you translate the vi.js, please share it to be in a future release for other Vietnamese users. |
@New0 I think this is a bug. If vi language file doesn't exist, we should not try to use it. |
@New0 @Shelob9 I downloaded the en.js file, translated it, and then upload it to assets/js/i18n in Caldera Form folder in my wp-content folder. |
@Shelob9 Thank you, that makes sense I didn't think all the way through the issue. @tuanbbhero could you share the file please ? |
Closed via b972387 |
Failed to load resource: the server responded with a status of 404 (Not Found)
mysite.com/wp-content/plugins/caldera-forms/assets/js/i18n/vi.js?ver=1.8.5
Uncaught Error: vi is not available in the catalog
at m.setLocale (parsley.min.js?ver=1.8.5:2)
at i.window.Parsley. [as setLocale] (parsley.min.js?ver=1.8.5:3)
at (index):1325
I encountered this problem from previous versions, to the current version (when I use Vietnamese at Settings > General).
The text was updated successfully, but these errors were encountered: