If you want to do literally what you request and pick an alternate file for the dijit/form/nls/validate
i18n modules, you can use the map
property to remap the module IDs (1.8+):
var dojoConfig = {
map: { dijit: {
'dijit/form/nls/validate': 'my/form/nls/validate',
'dijit/form/nls/en/validate': 'my/form/nls/en/validate',
// ... etc
} }
};
However, the standard and recommended method for overriding the messages on a validation widget are to just set the message properties using your own values:
define([
'dijit/form/ValidationTextBox',
'dojo/i18n!my/form/validate'
], function (ValidationTextBox, myI18n) {
var instance = new ValidationTextBox({ missingMessage: myI18n.missingMessage });
// ...
});