task.spawn(function()local M,Z=pcall(function()return localizationService:GetTranslatorForPlayerAsync(localPlayer)end)local function U()local M=IconController.getIcons()for M,Z in pairs(M)do Z:_updateAll()end end if M then IconController.translator=Z;(Z:GetPropertyChangedSignal("\076\111\099\097\108\101\073\100")):Connect(U)task.spawn(U)task.delay(1,U)task.delay(10,U)end end)return IconController

task.spawn(function()
	local success, translator = pcall(function() return localizationService:GetTranslatorForPlayerAsync(localPlayer) end)
	local function updateAllIcons()
		local icons = IconController.getIcons()
		for _, icon in pairs(icons) do
			icon:_updateAll()
		end
	end
	if success then
		IconController.translator = translator
		translator:GetPropertyChangedSignal("LocaleId"):Connect(updateAllIcons)
		task.spawn(updateAllIcons)
		task.delay(1, updateAllIcons)
		task.delay(10, updateAllIcons)
	end
end)


return IconController
