UNPKG

ethiopic-localization

Version:
16 lines (12 loc) 470 B
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;