Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Flexible lang dialect support #1335

Closed
wants to merge 5 commits into from
Closed

Flexible lang dialect support #1335

wants to merge 5 commits into from

Conversation

JarbasAI
Copy link
Contributor

@JarbasAI JarbasAI commented Dec 29, 2017

support language code variations, adds a utility function and implements it in skills core where relevant

these check for language code variations, lets say we want to access "path/en-uk" , but it does not exist, this PR adds methods to check for "path/en" , "path/en-us" etc, and returns the best language alternative

skills in "en-us" will still work if i configure mycroft for "en-uk", or "es-es" skills will work if i configure mycroft lang for "es"

@pep8speaks
Copy link

pep8speaks commented Dec 29, 2017

Hello @JarbasAI! Thanks for updating the PR.

Comment last updated on October 03, 2018 at 12:21 Hours UTC

@MycroftAI MycroftAI deleted a comment Dec 29, 2017
@MycroftAI MycroftAI deleted a comment Dec 29, 2017
@MycroftAI MycroftAI deleted a comment Dec 29, 2017
@MycroftAI MycroftAI deleted a comment Dec 29, 2017
@MycroftAI MycroftAI deleted a comment Dec 29, 2017
@MycroftAI MycroftAI deleted a comment Dec 29, 2017
@forslund forslund added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Dec 30, 2017
@JarbasAl
Copy link
Contributor

JarbasAl commented Feb 7, 2018

https://www.reddit.com/r/Mycroftai/comments/7v0nom/noob_where_are_all_the_configuration_options/dtrom1n/

For example I am in the UK I see in the example there is the line

"lang": "en-us",
Naturally I assume that the UK equivalent is:

"lang": "en-uk",
But this causes my device to no understand any command.

@neoscreenager
Copy link

neoscreenager commented Feb 7, 2018 via email

@JarbasAl
Copy link
Contributor

JarbasAl commented Mar 9, 2018

en-gb, en-uk, en-us, en-au, en ..... they all should work by default @neoscreenager , the difference should be minimal, no reasons for things to fail to load

or should we copy and have the exact same files in slightly differently named folders?

@JarbasAI JarbasAI closed this Sep 11, 2020
@JarbasAl JarbasAl deleted the flexible_lang_dir branch November 9, 2020 16:30
JarbasAl added a commit to HelloChatterbox/HolmesIV that referenced this pull request Sep 2, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
JarbasAl added a commit to HelloChatterbox/HolmesIV that referenced this pull request Sep 3, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
JarbasAl added a commit to HelloChatterbox/HolmesIV that referenced this pull request Sep 5, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
JarbasAl added a commit to HelloChatterbox/HolmesIV that referenced this pull request Sep 8, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
JarbasAl added a commit to HelloChatterbox/HolmesIV that referenced this pull request Sep 8, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
JarbasAl added a commit to HelloChatterbox/HolmesV that referenced this pull request Sep 8, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI/mycroft-core#1335
JarbasAl added a commit to HelloChatterbox/HolmesV that referenced this pull request Sep 8, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI/mycroft-core#1335
JarbasAl added a commit to HelloChatterbox/HolmesV that referenced this pull request Sep 8, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI/mycroft-core#1335
JarbasAl added a commit to HelloChatterbox/HolmesV that referenced this pull request Sep 8, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI/mycroft-core#1335
JarbasAl added a commit to HelloChatterbox/HolmesV that referenced this pull request Sep 8, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI/mycroft-core#1335
JarbasAl added a commit to HelloChatterbox/HolmesV that referenced this pull request Sep 8, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI/mycroft-core#1335
JarbasAl added a commit to HelloChatterbox/HolmesV that referenced this pull request Sep 8, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI/mycroft-core#1335
JarbasAl added a commit to HelloChatterbox/HolmesV that referenced this pull request Oct 7, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI/mycroft-core#1335
JarbasAl added a commit to HelloChatterbox/HolmesV that referenced this pull request Oct 7, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI/mycroft-core#1335
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Oct 19, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Oct 19, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Oct 19, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Oct 19, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Oct 21, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Oct 26, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Oct 26, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Oct 26, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Oct 26, 2021
when loading resources check for all language code variations and returns best path

if lang is set to pt-pt but only pt-br resources exist, those will be loaded instead of skill failing

changing language to en-gb should load british dialect variations if available, but en-us should still be used if en-gb missing! It's not a good enough reason to fail completely, this can be device breaking and greatly impacts user experience

unmerged original PR - MycroftAI#1335
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants