no value substitution when key is used as template #2123
              
                Unanswered
              
          
                  
                    
                      haayman-imagem
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the English string as the key of the translations, e.g. for Dutch:
{
"Continue": "Verder",
"Found {numResults}": "{numResults} gevonden"
}
When switching to English on our site, the translations object is almost empty, we just display the original key.
But it turns out that the {numResults} isn't substituted. We see the entire 'Found {numResults}'
So, is this a bug? Or is using the key as the template string not supported?
Beta Was this translation helpful? Give feedback.
All reactions