【问题标题】:How can I change these texts on AWS Amplify?如何在 AWS Amplify 上更改这些文本?
【发布时间】:2020-10-11 18:32:07
【问题描述】:

我无法更改标签文本。有什么解决办法吗?

【问题讨论】:

    标签: amazon-web-services authentication aws-amplify amplify


    【解决方案1】:

    自定义文本和添加语言翻译可以通过 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

    【讨论】:

      猜你喜欢
      • 2019-09-15
      • 1970-01-01
      • 2014-07-17
      • 2020-08-18
      • 2019-12-16
      • 2023-02-09
      • 2021-06-24
      • 2020-12-16
      • 2020-08-15
      相关资源
      最近更新 更多