Fixed a bug by replace “currentLanguage” with “string”.