Skip to content

Instantly share code, notes, and snippets.

View targumon's full-sized avatar
🤓

Amnon Sadeh targumon

🤓
View GitHub Profile
const getMessage = (key, language) => {
let msg = resources[language][key]
if (msg.split(' ').length > 3) {
msg = msg.replace(/ (?!.* )/, '\xA0')
}
return msg
}