Executing the following Lua code in hewiki
local label, lang = mw.wikibase.getLabelWithLang( 'Q532055' )
returns
label='Rosaura Revueltas' lang='he'
(note - the label is in English, which is a fallback)
Expected:
label='Rosaura Revueltas' lang='en'
Since getLabelWithLang doesn't provide the real language, one must manually validate it doesn't lie by:
mw.wikibase.getEntityObject( "Q532055' ).labels[lang]['language']