From 8e974a7eb4e997025f3abc5cc0ea075f247ae9a4 Mon Sep 17 00:00:00 2001 From: Mycroft Date: Sun, 12 Jun 2022 18:44:50 +0100 Subject: [PATCH] Delete locale.lua --- [esx]/skinchanger/locale.lua | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 [esx]/skinchanger/locale.lua diff --git a/[esx]/skinchanger/locale.lua b/[esx]/skinchanger/locale.lua deleted file mode 100644 index 0cd71743..00000000 --- a/[esx]/skinchanger/locale.lua +++ /dev/null @@ -1,21 +0,0 @@ -Locales = {} - -function _(str, ...) -- Translate string - - if Locales[Config.Locale] ~= nil then - - if Locales[Config.Locale][str] ~= nil then - return string.format(Locales[Config.Locale][str], ...) - else - return 'Translation [' .. Config.Locale .. '][' .. str .. '] does not exist' - end - - else - return 'Locale [' .. Config.Locale .. '] does not exist' - end - -end - -function _U(str, ...) -- Translate string first char uppercase - return tostring(_(str, ...):gsub("^%l", string.upper)) -end