mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-25 20:29:45 -04:00
Localize default “required” message
Fixes #966. I was trying, if possible, to not introduce localization at the component level in order to keep it in the views – but that seemed a bit too involved given that the fix in this way is only a few lines long.
This commit is contained in:
parent
16d638672e
commit
6be9fc1084
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
var defaults = require('lodash.defaultsdeep');
|
||||
var intl = require('../../lib/intl.jsx');
|
||||
var libphonenumber = require('google-libphonenumber');
|
||||
var phoneNumberUtil = libphonenumber.PhoneNumberUtil.getInstance();
|
||||
var React = require('react');
|
||||
|
@ -44,5 +45,5 @@ module.exports.validationHOCFactory = function (defaultValidationErrors) {
|
|||
};
|
||||
|
||||
module.exports.defaultValidationHOC = module.exports.validationHOCFactory({
|
||||
isDefaultRequiredValue: 'This field is required'
|
||||
isDefaultRequiredValue: <intl.FormattedMessage id="teacherRegistration.validationRequired" />
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue