When copying the links, the success message text is fetched from the translations constant without checking first if browser's language isn't Japanese. To fix that I copied the language verification from applyTranslations() and applied it to the return line in getTranslation().
function getTranslation(key) {
const userLanguage = navigator.language || navigator.userLanguage;
const isJapanese = userLanguage.startsWith('ja');
return isJapanese && translations[key.toLowerCase()] || key;
}
Tx for sharing the project
PS: I forked this project and have implemented localization :)
When copying the links, the success message text is fetched from the
translationsconstant without checking first if browser's language isn't Japanese. To fix that I copied the language verification fromapplyTranslations()and applied it to the return line ingetTranslation().Tx for sharing the project
PS: I forked this project and have implemented localization :)