Skip to content

Commit

Permalink
Use stable version of text locales url (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiught committed Nov 1, 2023
1 parent effa673 commit d9b36fe
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/cli/prompts_custom_text.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"net/http"
"strings"

"github.com/spf13/cobra"
"golang.org/x/net/context"
Expand All @@ -16,7 +15,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"
)

Expand Down Expand Up @@ -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{})
}
Expand Down

0 comments on commit d9b36fe

Please sign in to comment.