Skip to content

Deprecated for language dialects #514

@jiesou

Description

@jiesou

My homeassistant always reports this:

Logger: gtts.lang
Source: components/google_translate/tts.py:107 First seen: 16:45:23 (1 occurrence)
Last seen: 16:45:23 'zh-CN' has been deprecated, falling back to 'zh-CN'. This fallback will be removed in a future version.

I think it has something to do with this:

if lang.lower() in deprecated_langs:

It's a case-sensitivity issue, even though "zh-CN" is the correct way, it says "deprecated"

I found a related issue: home-assistant/core#63376

And I noticed that this deprecation is not a recent change, so if this issue originates from downstream (homeassistant) please point it out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions