Skip to content

Releases: tabularelf/lexicon

Lexicon v4.0.5

22 Dec 19:11

Choose a tag to compare

Lexicon v4.0.5 Pre-release
Pre-release

Added

  • New config for Google Sheets plug-in, __LEXICON_GOOGLE_SHEETS_AUTO_DECLARE_FILES.
  • Added callback for Google Sheets plug-in.

Lexicon v4.0.4

20 Dec 11:53

Choose a tag to compare

Added

  • LexiconHotReload() is now a native function that can be called from the Hot reload plug-in!
  • As such, updated Lexicon.HotReload to v1.1.
  • New plug-in, Lexicon.GoogleSheets. Now you can store your localisation in the cloud! Requires Hot Reload plug-in!
  • Comes with a config and two new functions. LexiconGSDeclare(filename, sheetId, sheetPage) and LexiconGSUpdate().
  • LexiconGSDeclare(...) will download the file directly to your projects datafiles where possible while testing from IDE. (Can be configured or turned off!)

Fixed

  • LexiconPlugInAssertDependencies() did not let you select a plug-in and target version.

Lexicon v4.0.3

08 Dec 02:41

Choose a tag to compare

Added

  • LexiconEntryIsLoaded(key) -> determines whether an entry w/ text exists or not.
  • .HasDummyEntry() -> determines whether a text element contains a dummy entry or not. (Only true for text elements generated from LexiconParse() or LexiconParseExt() and that weren't changed via .SetKey().)

Changed

  • LexiconPlugInGetAllEntriesNames() now has an optional argument for returning only valid names. (Ones that are loaded)

Fixed

  • Fixed a bug with .SetKey(key) where it fetched an invalid entry.

Lexicon v4.0.2

01 Nov 14:01

Choose a tag to compare

This is a major rewrite of Lexicon. To see what has changed, please refer to this page here. This is aimed at 2024.13 and above!

https://docs.tabularelf.com/lexicon/#/4.0.2/changes-from-v3

Added

  • LexiconIndexUndeclare(language) - Removes the language (and resets all entries assigned to it.)
  • JSON parser now supports multiple languages for declaring.

Changed

  • CSV parser row separator value now checks if it starts with the string, rather than matching exactly. (The start is trimmed).

Fixed

  • Changed where entry created callbacks are fired.
  • Some bugs involving the CSV not checking for invalid locales.

Lexicon v4.0.1-beta

27 Oct 16:27

Choose a tag to compare

Lexicon v4.0.1-beta Pre-release
Pre-release

Added

  • LexiconParse() and LexiconParseExt(). Both of these work very similar to Lexicon() and LexiconExt(), except that they treat the text "as is" and parses it. These still follow the exact same rules otherwise.

Changed

  • Dynamic callbacks and variable modifiers now pass in the weak value over the cache result, giving you the value directly as opposed to just a string-based variant.

Fixed

  • Due to a 2024.13 package bug, the main repo contents has been moved over to "REPO_DO_NOT_IMPORT". If you see this in the package, please do not include it.
  • Fixed some cases where text elements optimized a lil too optimistically.
  • Applied fix in relation to an upstream bug.

Lexicon v4.0.0-alpha

25 Oct 01:19

Choose a tag to compare

Lexicon v4.0.0-alpha Pre-release
Pre-release

This is a major rewrite of Lexicon. To see what has changed, please refer to this page here. This is aimed at 2024.13 and above!

https://docs.tabularelf.com/lexicon/#/4.0.0/changes-from-v3

Lexicon v3.0.8

26 Feb 14:58

Choose a tag to compare

New

  • Added lexicon_get_json_data()
  • Returns the struct that Lexicon loaded in via json, minus the entries text, language and locale. Or undefined if the loaded data isn't json (or failed to load).

Lexicon v3.0.7

28 Nov 15:25

Choose a tag to compare

Fixed

  • Issue where lexicon_index_declare_from_csv didn't store cell/string delimiters for loading later.

Lexicon v3.0.6

15 Oct 01:30

Choose a tag to compare

This release has been a long time coming, I hope it was worth the wait! 🙏

Added

  • lexicon_language_get_index(), which returns the current index within the language array.
  • lexicon_dynamic_define(name, callback, [updateCache=true]), which updates any text passed to lexicon_text and lexicon_text_array calls, replacing them with the return of the callback.
  • Ability to refer to entries within entries, along with recursion detection.

Changed

  • Reworked all of the macros to now be __MACRO_NAME instead of MACRO_NAME (To privatise these)
  • Changed a couple default settings (struct accessors are now {foo} instead of %foo%)
  • Any updates/fixes made from the last few v2.1.x versions
  • Neaten up lexicon_settings comments
  • Any string can be processed via lexicon_text and lexicon_text_array. (lexicon_text("Hello {0}!", "Bob") will be processed and actually return the processed string.)

Deprecated

  • Legacy accessor %s
  • lexicon_text_struct. Superseeded by lexicon_text and lexicon_text_array.

Removed

  • Removed a bunch of old settings that were no longer needed.

Lexicon v3.0.5

27 Jun 19:49

Choose a tag to compare

Lexicon v3.0.5 Pre-release
Pre-release

Added:

  • Ability to refer to entries within entries
  • Recursion detection for entries referred within entries.