transloco icon indicating copy to clipboard operation
transloco copied to clipboard

Bug(language code): lowercase dashed language codes fail to present

Open AmitMY opened this issue 3 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Which Transloco package(s) are the source of the bug?

Transloco

Is this a regression?

No

Current behavior

if trying to load language code zh-cn for example, the files indeed load correctly, but transloco throws warnings in the console:

Missing translation for 'zhCn.title'

and does not display the text correctly.

Expected behavior

lowercase zh-cn should work, same as zh-CN uppercase.

Please provide the environment you discovered this bug in

Transloco: 4.1.0
Angular: 14.0.1
Package Manager: npm
OS: macOS

AmitMY avatar Jun 15 '22 09:06 AmitMY