如何在 AWS Amplify Vue 创建的 AWS Cognito 登录页面上本地化或删除消息 "Please fill out this field."
How to localize or delete message "Please fill out this field." on AWS Cognito login page created by AWS Amplify Vue
现在我尝试本地化由 AWS Amplify Vue 创建的 AWS Cognito 登录页面。
但是我仍然无法定位或删除输入为空时出现的弹出消息。
这似乎不是 api request/response,所以即使我尝试 I18n
和 Please fill out this field
,它也没有改变。
<template>
<amplify-authenticator>
<amplify-sign-in slot="sign-in" hide-sign-up="true"></amplify-sign-in>
</amplify-authenticator>
</template>
export const extraVocabularies = {
'ja-JP': {
'Please fill out this field.':
'hoge fuga',
},
};
I18n.putVocabularies(extraVocabularies);
I18n.setLanguage('ja-JP');
所以请给我本地化或删除此消息的方法。
我发现消息"Please fill out this field"
是由浏览器生成的。
因此,根据浏览器的区域设置,此消息的区域设置也会发生变化。
现在我尝试本地化由 AWS Amplify Vue 创建的 AWS Cognito 登录页面。
但是我仍然无法定位或删除输入为空时出现的弹出消息。
这似乎不是 api request/response,所以即使我尝试 I18n
和 Please fill out this field
,它也没有改变。
<template>
<amplify-authenticator>
<amplify-sign-in slot="sign-in" hide-sign-up="true"></amplify-sign-in>
</amplify-authenticator>
</template>
export const extraVocabularies = {
'ja-JP': {
'Please fill out this field.':
'hoge fuga',
},
};
I18n.putVocabularies(extraVocabularies);
I18n.setLanguage('ja-JP');
我发现消息"Please fill out this field"
是由浏览器生成的。
因此,根据浏览器的区域设置,此消息的区域设置也会发生变化。