I there,
I have seen, that there is no heuristic to differentiate between Latin Languages, therefore all Latin Languages will be translated, even if it is from the same Language. For example from German to German.
I want to propose and also implement a simple heuristic for these:
search for Keywords to score the likelihood of the Latin Languages :
'uk': 'привіт|дякую|будь|ласка|як|де|не|так|це|є|най|ще|може|для'
'ru': 'что|это|как|не|да|нет|он|она|они|быть|есть|для|сегодня|если|уже|может'
'bg': 'ще|няма|благодаря|моля|това|какво|тук|ние|вие|не|със|за'
'de': 'der|die|das|und|ist|nicht|ein|eine|ich|für|mit|auf|zu|auch|als|an|im|am|es|dem|den|sich|von'
'en': 'the|and|is|you|for|with|from|not|that|this|have|be|are|was|were|but|can|will|your|what|when|how|they'
'es': 'el|la|los|las|es|que|de|en|con|por|para|no|un|una|se|como|su|al|del|está'
'fr': 'le|la|les|un|une|et|est|que|qui|pour|dans|pas|avec|sur|ne|vous|il|elle|des|ce|cette|je|tu|nous|vous'
'it': 'il|la|lo|un|una|che|di|da|in|per|con|non|si|mi|ti|noi|voi|lui|lei'
'pt': 'os|as|que|de|do|da|em|para|com|por|não|uma|um|se|você|também'
'nl': 'de|het|een|en|is|niet|dat|wat|je|ik|op|aan|voor|met|als|nog|zijn'
'sv': 'och|är|det|att|som|en|på|inte|har|var|men|du|jag|vi|ni|den|detta'
'pl': 'na|się|nie|jest|to|że|do|od|dla|czy|tak|ale|ma|jak|on|ona|my'
'sk': 'je|na|so|že|do|od|za|si|to|ten|tá|tí|ako|má|nie|som|sa'
'sl': 'in|je|na|se|da|za|od|ne|to|ta|so|kako|bo|sem|si'
'hu': 'az|és|nem|van|volt|hogy|mit|mire|ki|mi|ez|azért|is|de|ha|te|ő|mi|itt'
I there,
I have seen, that there is no heuristic to differentiate between Latin Languages, therefore all Latin Languages will be translated, even if it is from the same Language. For example from German to German.
I want to propose and also implement a simple heuristic for these:
search for Keywords to score the likelihood of the Latin Languages :