Skip to content

v0.3.1 Witaj świecie II

Compare
Choose a tag to compare
@ChanceNCounter ChanceNCounter released this 04 Nov 04:41
· 82 commits to master since this release
ebfe39f

Hotfix: Patches a severe bug in v0.3.0 causing default arguments to throw DeprecationWarnings.

Also fixed:

  • Czech tests were re-running tests from other languages (@Tony763)
  • Hard-to-reach bug in a warning routine
  • Ensure key files are included in source distribution packages

Version 0.3.0 release notes follow:


v0.3.0 of Lingua Franca brings a significant restructure to the code base courtesy of @ChanceNCounter. This provides a strong basis for adding new languages and expanding the available functions.

Anyone interested in contributing to Lingua Franca, please see the new project-structure.md. This covers the new file structure, how to add localized versions of existing functions, and how to add new top-level functions. The primary README.md also contains a detailed step by step guide to get started contributing to the project.

This version also brings initial support for the Polish language, courtesy of @rafaljanicki.

Breaking change:

  • You must now explicitly load one or more languages. Functions will default to whichever language is loaded first, unless a new default is specified.

    lingua_franca.load_language('en')          # 'primary' lang code (package's terminology)
    lingua_franca.load_language('pt-pt')       # full lang code
    lingua_franca.load_languages(['en', 'es']) # multiple languages at once, first will be default
    lingua_franca.set_default_lang('es')       # self-explanatory

Deprecated:

  • Explicitly passing None for arguments (eg lang=None) in order to fallback to a default is no longer supported. This was previously included to handle some edge case in Mycroft-core that no longer exists. If no lang is passed then the default language will be used.
  • Direct imports from lingua_franca.lang have been deprecated. Getter and setter methods are now available to perform these functions.

Other:

  • Code is now tested against Python 3.9. Please note that Python 3.5 support will soon be dropped as it has reached end of life.
  • Thanks also to @YuukanOO for improvements to extract_number() across a number of languages.