I have blog page on multiple languages and I use react-i18next library for translation. I have one component called BlogPostPage where I show each post when it’s opened, inside the component there is part for showing blog text like this: and my json translation file looks like this So I want to put html code inside translation text since different
Tag: translation
AppleScript Hash Symbol (#) in URL
I have this Automator AppleScript to translate texts. It works, but only with one word. If I select two words or more to translate, it changes the hash (#) in the URL to %23, like this https://www.deepl.com/translator%23pt/en/ and I get a 404 Not Found. Answer I’d use ‘Listing 32-7 AppleScriptObjC: Handler that URL encodes text’ from Encoding and Decoding Text.
I18n-js – is there a way to check if a translation exists or not?
Is there a way to check if a translation exists or not with the library I18n-js? Answer You can use the method lookup(). It returns undefined when the translation does not exist, so you can put it in your conditional. For example: