You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lsp_def/utils.lua
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -340,8 +340,15 @@ function SMODS.SAVE_UNLOCKS() end
340
340
functionSMODS.process_loc_text(ref_table, ref_value, loc_txt, key) end
341
341
342
342
---@parampathstring
343
+
--- This method is deprecated. Use SMODS.load_mod_localization instead.
343
344
--- Handles injecting localization files.
344
-
functionSMODS.handle_loc_file(path) end
345
+
functionSMODS.handle_loc_file(path, mod_id) end
346
+
347
+
---@parampathstring The top level path of the mod that localization should be loaded from.
348
+
---@parammod_idstring The ID of the mod localization strings are being loaded for.
349
+
---@paramdepthnumber Recursive calling depth. This function is called recursively to load localization files located in subfolders of a mod's localization folder up to four folders deep.
350
+
--- Handles injecting a mod's localization files.
351
+
functionSMODS.load_mod_localization(path, mod_id, depth) end
0 commit comments