-
Is there any way to return static value provided if key does not exist? |
Beta Was this translation helpful? Give feedback.
Answered by
claviska
Mar 19, 2024
Replies: 1 comment
-
If a term doesn't exist in the target translation or the fallback, the key will be output. There's currently no way to change this, but there's an undocumented method to check if a term exists that may help you. Lines 131 to 149 in 6e9dfa5 I would consider this method public and stable. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pchaudha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a term doesn't exist in the target translation or the fallback, the key will be output. There's currently no way to change this, but there's an undocumented method to check if a term exists that may help you.
localize/src/index.ts
Lines 131 to 149 in 6e9dfa5