【发布时间】:2020-10-11 18:32:07
【问题描述】:
我无法更改标签文本。有什么解决办法吗?
【问题讨论】:
标签: amazon-web-services authentication aws-amplify amplify
我无法更改标签文本。有什么解决办法吗?
【问题讨论】:
标签: amazon-web-services authentication aws-amplify amplify
自定义文本和添加语言翻译可以通过 I18n 模块完成:
import { I18n } from "aws-amplify";
import { Translations } from "@aws-amplify/ui-components";
I18n.putVocabulariesForLanguage("en-US", {
[Translations.SIGN_IN_HEADER_TEXT]: "Custom Sign In Header Text",
[Translations.SIGN_IN_ACTION]: "Custom Click Here to Sign In"
});
可在Translations.ts 中找到所有可翻译字符串的完整列表。
来源:https://docs.amplify.aws/ui/customization/translations/q/framework/vue
【讨论】: