From 53a105e8a30709ebdf129b82df36af2fc435a770 Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> Date: Mon, 16 Oct 2023 15:11:36 +0200 Subject: [PATCH 1/2] Use stable version of text locales url --- internal/cli/prompts_custom_text.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/prompts_custom_text.go b/internal/cli/prompts_custom_text.go index af2bd099b..478a62aa9 100644 --- a/internal/cli/prompts_custom_text.go +++ b/internal/cli/prompts_custom_text.go @@ -16,7 +16,7 @@ import ( const ( textDocsKey = "__doc__" textDocsURL = "https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts" - textLocalesURL = "https://cdn.auth0.com/ulp/react-components/development/languages/%s/prompts.json" + textLocalesURL = "https://cdn.auth0.com/ulp/react-components/1.66.3/languages/%s/prompts.json" textLanguageDefault = "en" ) From c91263bc0a1031edd3380b660fa416a69bd7e012 Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> Date: Mon, 16 Oct 2023 15:28:43 +0200 Subject: [PATCH 2/2] Remove unneeded check from mergeBrandingTextTranslations --- internal/cli/prompts_custom_text.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/cli/prompts_custom_text.go b/internal/cli/prompts_custom_text.go index 478a62aa9..cdfbafa2d 100644 --- a/internal/cli/prompts_custom_text.go +++ b/internal/cli/prompts_custom_text.go @@ -4,7 +4,6 @@ import ( "encoding/json" "fmt" "net/http" - "strings" "github.com/spf13/cobra" "golang.org/x/net/context" @@ -242,10 +241,6 @@ func mergeBrandingTextTranslations( } for key, text := range translations { - if strings.HasPrefix(key, "error") || strings.HasPrefix(key, "devKeys") || key == "usernameOnlyPlaceholder" { - continue - } - if _, ok := mergedTranslations[screen]; !ok { mergedTranslations[screen] = make(map[string]interface{}) }