Commit Graph

21 Commits

Author SHA1 Message Date
ANTOND.
ff2f4c06f9 chore: update organization name 2025-05-02 15:44:52 +02:00
Linden
cc6aed591f chore: adjust links 2025-03-29 21:46:58 +11:00
Linden
fb2225e373 chore: add copyright notices to each file
Some people accidentally, mistakenly, and without any malicious intent forget to attribute code from this resource to its source. This change will hopefully assist people, so that they do not make that mistake again.
2025-03-18 18:46:09 +11:00
Linden
0b13a56071 fix(package/locale): sync behaviour with Lua 2024-05-14 18:19:26 +10:00
Linden
b6632ad789 refactor(locale): merge locales with english definitions
Also sync some recent changes in the TS module.
2024-04-20 06:42:28 +10:00
Linden
1e3b2cb567 feat(locale): locale hotloading 2024-04-01 19:16:53 +11:00
Linden
80a2a7c39d feat(locale): add lib.getLocale for sharing locales between resources 2023-12-09 19:28:01 +11:00
Armands Vilciņš
2aeade72f0 feature(locale): support nested locales (#463) 2023-12-07 07:44:50 +11:00
Linden
c57b1a9215 fix(imports/locale): prevent error from invalid locales
People with poorly formatted json files would not get a locales table,
leading to an error when trying to iterate.
Contains some other inconsequential changes, and warnings.
2023-02-23 18:54:49 +11:00
Linden
a8b9f8cde5 fix(locale/shared): phrase-construction for strings without placeholders
string.gsub returns two variables, the updated string and the pattern occurrences.
The outer string.gsub would replace n occurrences, or nothing if the string did not
contain '%'.
2023-02-01 03:20:04 +11:00
Linden
6fbdd49702 fix(shared/locale): only construct phrases for strings 2023-01-16 18:18:51 +11:00
Linden
fd5bd066ab feat(shared/locale): locale phrases 2023-01-08 15:24:36 +11:00
Linden
ec18bbf34a fix(locale): setLocale 2022-10-19 04:14:36 +11:00
Linden
671be5e7a2 refactor(locale): simplify
BREAKING CHANGE (kind of)
Remove user-selection for locales. Adds mostly unnecessary complexity,
and most people don't want to bother with it anyway.

Locale is always based on the convar "ox:locale" instead.
2022-10-18 21:17:26 +11:00
Linden
32e2da2d8f refactor(init): type-fixes and minor adjustments 2022-09-14 01:42:14 +10:00
Linden
26538b8148 refactor(imports): assign modules directly to lib namespace
Mostly a change for improved intellisense with sumneko lua.
Includes some type fixes and deprecation notices.
2022-09-14 01:20:50 +10:00
Linden
6c83adfda8 fix(locale): always assign a table to dict
Prevent indexing nil when no locales exist for a resource.
2022-06-24 09:10:37 +10:00
Linden
d4b5e0402c refactor(server/locale): get array of valid locales 2022-05-06 16:37:36 +10:00
Linden
48728f0241 feat(locales): include some locales
Partial, and google translated just for the sake of setting an example.
Also renamed many of the language codes where the extra characters are
redundant (i.e. fr-FR, de-DE).
2022-04-30 05:04:15 +10:00
Linden
031cccd886 fix(locale): server hotload and "external" kvp
External kvp's don't exist for the server, so we have to export the proper language.
2022-04-29 16:53:24 +10:00
Linden
8af19bae42 feat: locale system 2022-04-29 05:56:41 +10:00