function TranslationHelper.setLanguage(I)if sourceLanguageCode~=I then local B,E=pcall(function()return LocalizationService:GetTranslatorForLocaleAsync(I)end)if B and E then playerTranslator=E return true end end return false end

function TranslationHelper.setLanguage(newLanguageCode)
	if sourceLanguageCode ~= newLanguageCode then
		local success, newPlayerTranslator = pcall(function()
			return LocalizationService:GetTranslatorForLocaleAsync(newLanguageCode)
		end)

		--Only override current playerTranslator if the new one is valid (fallbackTranslator remains as experience's source language)
		if success and newPlayerTranslator then
			playerTranslator = newPlayerTranslator
			return true
		end
	end
	return false
end
