Skip to content

auth0 terraform gen should also return default translations for resource auth0_prompt_custom_text #1528

@MathieuAYounited

Description

@MathieuAYounited

Checklist

Describe the problem you'd like to have solved

Hi,

When we generate prompt custom text with the command auth0 terraform gen, we would like to get the default translations for each resources of type auth0_prompt_custom_text for all languages.

In our case, we want the terraform configuration to be the source of truth and we had to manually take each translations. This would be more convenient to make mass modifications or using LLM to analyze.

Best regards,
Mathieu

Describe the ideal solution

The CLI would create an auth0_generated.tf file containing custom prompt text like this:

resource "auth0_prompt_custom_text" "pt_pt_common" {
  body = jsonencode({
    "redeem-ticket" = {
      "pageTitle" : "Registar-se na autenticação multifator",
      "description" : "Clique em Continuar para efetuar a autenticação multifator",
      "descriptionEmailVerify" : "Clique em continuar para verificar seu e-mail",
      "descriptionPasswordlessVerify" : "Clique em continuar para iniciar sessão",
      "buttonText" : "Continuar",
      "logoAltText" : "$${companyName}"
    }
  })
  language = "pt-PT"
  prompt   = "common"
}

Alternatives and current workarounds

I didn't found easy alternatives as we get an empty body for default translations.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA feature has been asked for or suggested by the community

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions