ethiopic-localization
Version:
This package localizes all Ethiopian languages!
16 lines (12 loc) • 470 B
JavaScript
function CheckWordsTranslations(words, translatedWords, language) {
// Words = The words come form the client
// translatedWords = The words that have a translation form the API
words.words.forEach((word) => {
if (!translatedWords[word]) {
// If word haven't a translation assign it woth word not found.
translatedWords[word] = word + " not found";
}
});
return translatedWords;
}
module.exports = CheckWordsTranslations;