Skip to content

Commit

Permalink
Merge pull request #258 from OpenVoiceOS/release-1.0.2a1
Browse files Browse the repository at this point in the history
Release 1.0.2a1
  • Loading branch information
JarbasAl authored Oct 18, 2024
2 parents c77ccfc + 1ae6bd3 commit 38db73f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Changelog

## [1.0.1a1](https://github.com/OpenVoiceOS/OVOS-workshop/tree/1.0.1a1) (2024-10-16)
## [1.0.2a1](https://github.com/OpenVoiceOS/OVOS-workshop/tree/1.0.2a1) (2024-10-18)

[Full Changelog](https://github.com/OpenVoiceOS/OVOS-workshop/compare/1.0.0...1.0.1a1)
[Full Changelog](https://github.com/OpenVoiceOS/OVOS-workshop/compare/1.0.1...1.0.2a1)

**Fixed bugs:**

- lingua franca does not support standardized lang codes, it needs lower case [\#256](https://github.com/OpenVoiceOS/OVOS-workshop/issues/256)

**Merged pull requests:**

- fix:standardize lang code [\#254](https://github.com/OpenVoiceOS/OVOS-workshop/pull/254) ([JarbasAl](https://github.com/JarbasAl))
- fix:lingua\_franca [\#257](https://github.com/OpenVoiceOS/OVOS-workshop/pull/257) ([JarbasAl](https://github.com/JarbasAl))



Expand Down
12 changes: 11 additions & 1 deletion ovos_workshop/skills/ovos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1999,7 +1999,17 @@ def ask_yesno(self, prompt: str,
'no', including a response of None.
"""
resp = self.get_response(dialog=prompt, data=data)
answer = yes_or_no(resp, lang=self.lang) if resp else resp
# TODO - lingua_franca does not support standardized lang tags
# deprecate it, use a plugin here https://github.com/TigreGotico/ovos-solver-YesNo-plugin
lf_langs = ("az-az", "ca-es", "cs-cz", "da-dk", "de-de",
"en-us", "es-es", "fr-fr",
"hu-hu", "it-it", "nl-nl", "pl-pl",
"fa-ir", "pt-pt", "ru-ru", "sl-si",
"sv-se", "tr-tr", "eu-eu", "uk-ua")
lang, score = closest_match(self.lang, lf_langs)
if score > 10:
lang = self.lang # let it raise a value Error in next line
answer = yes_or_no(resp, lang=lang) if resp else resp
if answer is True:
return "yes"
elif answer is False:
Expand Down
4 changes: 2 additions & 2 deletions ovos_workshop/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# START_VERSION_BLOCK
VERSION_MAJOR = 1
VERSION_MINOR = 0
VERSION_BUILD = 1
VERSION_ALPHA = 0
VERSION_BUILD = 2
VERSION_ALPHA = 1
# END_VERSION_BLOCK

0 comments on commit 38db73f

Please sign in to comment.