maxlath/wikibase-sdk

shortLang behavior when fetching zh-hans

lisongx opened this issue · 1 comments

Thanks for making this awesome tool!

I've been run into this issue when I'm trying to query zh-hans (simplified chinese) as a languages options in getEntities. It seems to force convert it to zh, what's the rational behind this? In the case of zh, we have many variants so each language code have return different result

reference:

// Ex: keep only 'fr' in 'fr_FR'

Should the force lang leave as an option or better just leave to the end users to convert?

thanks!

thank you for reporting, as I deal mostly with languages without -, I didn't see that was causing this kind of behavior >< that's now fixed in v7.1.2