Skip to content

Language code casing issue with Chinese #10375

@yannjor

Description

@yannjor

Describe the bug

The Chinese language codes seem to be set to zh-cn and zh-tw for simplified and traditional characters respectively.

setupLocale({ localeCode: "zh-cn", strings: simplifiedChineseSurveyStrings, nativeName: "简体中文", englishName: "Simplified Chinese" });

Setting:

const survey = new Model(surveyJson);
survey.locale = "zh-CN"

Doesn't seem to work, and falls back to English translations. However I noticed for example this works.

survey.locale = "pt-BR"

Could this be a bug?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions