ox_lib icon indicating copy to clipboard operation
ox_lib copied to clipboard

[Bug] Js package initializing locales automaticaly

Open luxu-gg opened this issue 1 year ago • 2 comments

When using the js package, locale function is automaticaly initialized with initLocale(), fetching for the resource's locales/ folder. https://github.com/overextended/ox_lib/blob/5ac07d8b887aa2f1e68e5e3bec6497345aff7bbe/package/shared/resource/locale/index.ts#L90

This is not optimal since we may not wish to use the lib's locales functionality. The main issue is, it attempts to find a locale that might not be present, producing a console warning.

This is a very low priority issue but I have received quite a few reports since it sometimes leads users to believe something might be broken.

luxu-gg avatar Aug 18 '24 10:08 luxu-gg