shortLang behavior when fetching zh-hans
lisongx opened this issue · 1 comments
lisongx commented
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:
wikibase-sdk/lib/utils/utils.js
Line 2 in 452249b
Should the force lang leave as an option or better just leave to the end users to convert?
thanks!
maxlath commented
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