- remove locales module

This commit is contained in:
Mustachedom committed 2026-08-18 00:02:04 -07:00
1 parent d6cffd01bc
commit 07530a8662
25 files changed
+84 -724

No files matched your search

+1 -5
View File
@@ -5,10 +5,6 @@ Notify.GetResourceName = function()
return "default"
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
---DEPRICATED: PLEASE SWITCH TO Notify.SendNotification
---12/13/25
---@param src number
@@ -31,7 +27,7 @@ end
Notify.SendNotification = function(src, title, message, _type, time, props)
time = time or 3000
if not title then
title = placeHolderText
title = lib.locale("Notifications.PlaceholderTitle")
end
TriggerClientEvent('community_bridge:Client:Notify', src, title, message, _type, time, props)
end
+1 -5
View File
@@ -9,10 +9,6 @@ Notify.GetResourceName = function()
return resourceName
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
Notify.SendNotify = function(message, _type, time)
time = time or 3000
return exports['brutal_notify']:SendAlert('Notification', message, time, _type or "success", false)
@@ -27,7 +23,7 @@ end
---@return nil
Notify.SendNotification = function(title, message, _type, time, props)
time = time or 3000
if not title then title = placeHolderText end
if not title then title = lib.locale("Notifications.PlaceholderTitle") end
return exports['brutal_notify']:SendAlert(title, message, time, _type or "success", false)
end
+1 -6
View File
@@ -8,11 +8,6 @@ Notify.GetResourceName = function()
return resourceName
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
Notify.SendNotify = function(message, _type, time)
time = time or 3000
if _type == "error" or _type == "info" then
@@ -36,7 +31,7 @@ end
---@return nil
Notify.SendNotification = function(title, message, _type, time, props)
time = time or 3000
if not title then title = placeHolderText end
if not title then title = lib.locale("Notifications.PlaceholderTitle") end
if _type == "error" or _type == "info" then
_type = tostring(1)
elseif _type == "success" then
+1 -4
View File
@@ -9,9 +9,6 @@ Notify.GetResourceName = function()
return resourceName
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
Notify.SendNotify = function(message, _type, time)
@@ -28,7 +25,7 @@ end
---@return nil
Notify.SendNotification = function(title, message, _type, time, props)
time = time or 3000
if not title then title = placeHolderText end
if not title then title = lib.locale("Notifications.PlaceholderTitle") end
return exports.lation_ui:notify({ title = title, message = message, type = _type or "success", duration = time, position = 'top-right' })
end
+1 -4
View File
@@ -8,9 +8,6 @@ Notify.GetResourceName = function()
return resourceName
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
---DEPRICATED: PLEASE SWITCH TO Notify.SendNotification
---@param message string
@@ -31,7 +28,7 @@ end
---@return nil
Notify.SendNotification = function(title, message, _type, time, props)
time = time or 3000
if not title then title = placeHolderText end
if not title then title = lib.locale("Notifications.PlaceholderTitle") end
return exports.msk_core:Notify(title, message, _type or "success", time)
end
+1 -5
View File
@@ -8,10 +8,6 @@ Notify.GetResourceName = function()
return resourceName
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
Notify.SendNotify = function(message, _type, time)
time = time or 3000
_type = _type or "inform"
@@ -28,7 +24,7 @@ end
---@return nil
Notify.SendNotification = function(title, message, _type, time, props)
time = time or 3000
if not title then title = placeHolderText end
if not title then title = lib.locale("Notifications.PlaceholderTitle") end
_type = _type or "inform"
return exports['mythic_notify']:SendAlert(_type, message, time)
end
+1 -5
View File
@@ -8,10 +8,6 @@ Notify.GetResourceName = function()
return resourceName
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
Notify.SendNotify = function(message, _type, time)
time = time or 3000
return exports['okokNotify']:Alert('Notification', message, time, _type or "Success", false)
@@ -27,7 +23,7 @@ end
---@return nil
Notify.SendNotification = function(title, message, _type, time, props)
time = time or 3000
if not title then title = placeHolderText end
if not title then title = lib.locale("Notifications.PlaceholderTitle") end
return exports['okokNotify']:Alert(title, message, time, _type or "Success", false)
end
+1 -6
View File
@@ -8,11 +8,6 @@ Notify.GetResourceName = function()
return resourceName
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
Notify.SendNotify = function(message, _type, time)
time = time or 3000
return exports.ox_lib:notify({ description = message, type = _type, duration = time, position = 'top-right' })
@@ -27,7 +22,7 @@ end
---@return nil
Notify.SendNotification = function(title, message, _type, time, props)
time = time or 3000
if not title then title = placeHolderText end
if not title then title = lib.locale("Notifications.PlaceholderTitle") end
return exports.ox_lib:notify({ title = title, description = message, type = _type or "success", duration = time, position = 'top-right' })
end
+1 -5
View File
@@ -8,10 +8,6 @@ Notify.GetResourceName = function()
return resourceName
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
Notify.SendNotify = function(message, _type, time)
time = time or 3000
return exports['pNotify']:SendNotification({ text = message, type = _type, timeout = time, layout = 'centerRight' })
@@ -27,7 +23,7 @@ end
---@return nil
Notify.SendNotification = function(title, message, _type, time, props)
time = time or 3000
if not title then title = placeHolderText end
if not title then title = lib.locale("Notifications.PlaceholderTitle") end
return exports['pNotify']:SendNotification({ title = title, text = message, type = _type or "success", timeout = time, layout = 'centerRight' })
end
+1 -5
View File
@@ -8,10 +8,6 @@ Notify.GetResourceName = function()
return resourceName
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
Notify.SendNotify = function(message, _type, time)
time = time or 3000
return exports.r_notify:notify({title = 'Notification', content = message, type = _type, icon = "fas fa-check", duration = time, position = 'top-right', sound = false})
@@ -26,7 +22,7 @@ end
---@return nil
Notify.SendNotification = function(title, message, _type, time, props)
time = time or 3000
if not title then title = placeHolderText end
if not title then title = lib.locale("Notifications.PlaceholderTitle") end
return exports.r_notify:notify({title = title, content = message, type = _type or "success", icon = "fas fa-check", duration = time, position = 'top-right', sound = false})
end
+1 -5
View File
@@ -9,10 +9,6 @@ Notify.GetResourceName = function()
return resourceName
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
Notify.SendNotify = function(message, _type, time)
time = time or 3000
@@ -28,7 +24,7 @@ end
---@return nil
Notify.SendNotification = function(title, message, _type, time, props)
time = time or 3000
if not title or title == "" then title = placeHolderText end
if not title or title == "" then title = lib.locale("Notifications.PlaceholderTitle") end
props = props or {}
+1 -5
View File
@@ -8,10 +8,6 @@ Notify.GetResourceName = function()
return resourceName
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
Notify.SendNotify = function(message, _type, time)
time = time or 3000
_type = _type or "info"
@@ -27,7 +23,7 @@ end
---@return nil
Notify.SendNotification = function(title, message, _type, time, props)
time = time or 3000
if not title then title = placeHolderText end
if not title then title = lib.locale("Notifications.PlaceholderTitle") end
_type = _type or "info"
return exports['t-notify']:Alert({ title = title, style = _type, message = message, duration = time, })
end
+1 -5
View File
@@ -8,10 +8,6 @@ Notify.GetResourceName = function()
return resourceName
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
Notify.SendNotify = function(message, _type, time)
time = time or 3000
_type = _type or "info"
@@ -27,7 +23,7 @@ end
---@return nil
Notify.SendNotification = function(title, message, _type, time, props)
time = time or 3000
if not title then title = placeHolderText end
if not title then title = lib.locale("Notifications.PlaceholderTitle") end
_type = _type or "info"
return exports.wasabi_notify:notify(_type, message, time, _type)
end
+2 -6
View File
@@ -8,10 +8,6 @@ Notify.GetResourceName = function()
return resourceName
end
local Language = Language or Require("modules/locales/shared.lua")
local locale = Language.Locale
local placeHolderText = locale("Notifications.PlaceholderTitle")
local function getIconByType(_type)
local icon = "info"
if _type == "success" then
@@ -27,7 +23,7 @@ end
Notify.SendNotify = function(message, _type, time)
time = time or 3000
local icon = getIconByType(_type)
local serial = exports['ZSX_UIV2']:Notification(placeHolderText, message, icon, time)
local serial = exports['ZSX_UIV2']:Notification(lib.locale("Notifications.PlaceholderTitle"), message, icon, time)
return serial
end
@@ -40,7 +36,7 @@ end
---@return nil
Notify.SendNotification = function(title, message, _type, time, props)
time = time or 3000
if not title then title = placeHolderText end
if not title then title = lib.locale("Notifications.PlaceholderTitle") end
local icon = getIconByType(_type)
exports['ZSX_UIV2']:Notification(title, message, icon, time)
end