Hey! On self-service UI, what's the correct approa...
# talk-kratos
r
Hey! On self-service UI, what's the correct approach to translate the labels and messages provided by Kratos?
I could do something like this on the client side:
Copy code
function getTranslatedNodeLabel(node) {
    const nodeLabel = getNodeLabel(node);
    if (nodeLabel === "Sign in") {
      return "Iniciar sesión";
    } else if (nodeLabel === "Sign up") {
      return "Registrarme";
    } else if (nodeLabel === "Submit") {
      return "Enviar";
    }
    return nodeLabel
  }
But looks a bit dirty and wonder if there's a better approach