From da42791369d8836cc408f6cd0aaa636d4989771b Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Thu, 9 Jan 2025 08:17:20 -0500 Subject: [PATCH] Update shared.lua --- modules/locales/shared.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/locales/shared.lua b/modules/locales/shared.lua index a65dee3..7983b10 100644 --- a/modules/locales/shared.lua +++ b/modules/locales/shared.lua @@ -19,9 +19,9 @@ Language = {} function Language.Locale(str, ...) local resource = GetInvokingResource() or GetCurrentResourceName() assert(resource, "Resource name not found") - print(resource, "locales/" .. Lang .. ".json") + --print(resource, "locales/" .. Lang .. ".json") local locales = LoadResourceFile(resource, "locales/" .. Lang .. ".json") - print(locales, Lang) + --print(locales, Lang) locales = locales and json.decode(locales) or {} local locale = locales[str] @@ -46,8 +46,8 @@ if BridgeSharedConfig.DebugLevel == 3 then -- Files must be stored in "locales" folder, within the resource. -- Instead of using Require you can also import it via the manifest. -- The Lang variable is available globally, which tells you what the server is using. - print("Language: ", Lang) - print("Locale: ", Language.Locale("locale-unit-test")) + --print("Language: ", Lang) + --print("Locale: ", Language.Locale("locale-unit-test")) -- Example outside community bridge resource: