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

Fallback to en-us when locale (intent, vocab) not found #2120

@domcross

Description

@domcross

When Skill-service starts up it loads all intents that are specified for a skill by looking into folders vocab/intent/locale for the configured language.

Problem: In case a intent/vocab-file is not found the skill is not loaded.

Example: recently the mycroft-stop skill was enhanced with the "reboot" intent. The "reboot.intent" file is currently only available for "en-us". I run Mycroft with language="de-de"and get following error:

mycroft.skills.core:load_skill:165 - ERROR - Failed to load mycroft-stop.mycroftai 
due to a missing file: Unable to find "reboot.intent"

This renders the whole skill unusable for me...

Suggestion: when load_skillfails to load a intent/vocab-file fall back to "en-us" and try to load the intent again. As in 99.99% of all cases there is a english intent file this will not break the loading of the intent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions