How use Multilanguage in jsx? #455
-
How I can use Language suffixes in jsx file? |
Beta Was this translation helpful? Give feedback.
Answered by
oscarotero
Jul 30, 2023
Replies: 1 comment 2 replies
-
I think it's not possible to export a variable with a dot in the name. This will fail export const title.en = "Title";
export const title.gl = "Título"; But you can export the language variables: export const en = {
title: "Title",
}
export const gl = {
title: "Título",
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
cawa-93
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it's not possible to export a variable with a dot in the name. This will fail
But you can export the language variables: