[DiscordArchive] The exe has default setting?
[DiscordArchive] The exe has default setting?
Archived author: Radeghost • Posted: 2024-07-16T23:10:09.842000+00:00
Original source
```lua
function Localize()
local locale = GetLocale()
if locale == "enUS" then
-- enUS localization
DISCORD = "This is English"
elseif locale == "zhTW" then
-- zhTW localization
DISCORD = "This is zhTW "
elseif locale == "esES" then
-- esES localization
DISCORD = "I'm in (s)Pain"
end
end
function LocalizeFrames()
-- Place any locale-specific UI adjustments here
ALLOW_RANDOM_NAME_BUTTON = GetLocale() == "enUS" or GetLocale() == "enGB"
end```
![[Image: image.png?ex=690c8874&is=690b36f4&hm=e7e...7a1fcc1ce&]](https://cdn.discordapp.com/attachments/415944535718494208/1262916027550007336/image.png?ex=690c8874&is=690b36f4&hm=e7ed2e21cbf267a7742431e3e0a44539c386dc1f4bc56e0d02f38ea7a1fcc1ce&)
Archived author: Titi • Posted: 2024-07-16T23:37:24.855000+00:00
Original source
I did some testing with a french client, the .exe is 1:1 identical with enUS, it doesn't have a config file by default.
I renamed the locale folder to check what it does if there's no locale, seems like it's just iterating to find any locale
![[Image: image.png?ex=690c8874&is=690b36f4&hm=e7e...7a1fcc1ce&]](https://cdn.discordapp.com/attachments/415944535718494208/1262916027550007336/image.png?ex=690c8874&is=690b36f4&hm=e7ed2e21cbf267a7742431e3e0a44539c386dc1f4bc56e0d02f38ea7a1fcc1ce&)
Archived author: Titi • Posted: 2024-07-16T23:40:50.746000+00:00
Original source
it reads enUS before frFR, so it's probably just iterating the locale enum in order