Releases: tabularelf/lexicon
Releases · tabularelf/lexicon
Lexicon v4.0.5
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
Added
LexiconHotReload()is now a native function that can be called from the Hot reload plug-in!- As such, updated
Lexicon.HotReloadto 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)andLexiconGSUpdate(). 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
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 fromLexiconParse()orLexiconParseExt()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
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
Added
LexiconParse()andLexiconParseExt(). Both of these work very similar toLexicon()andLexiconExt(), 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
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!
Lexicon v3.0.8
New
- Added
lexicon_get_json_data() - Returns the struct that Lexicon loaded in via json, minus the entries
text,languageandlocale. Orundefinedif the loaded data isn't json (or failed to load).
Lexicon v3.0.7
Fixed
- Issue where
lexicon_index_declare_from_csvdidn't store cell/string delimiters for loading later.
Lexicon v3.0.6
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 tolexicon_textandlexicon_text_arraycalls, 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_NAMEinstead ofMACRO_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_settingscomments - Any string can be processed via
lexicon_textandlexicon_text_array. (lexicon_text("Hello {0}!", "Bob")will be processed and actually return the processed string.)
Deprecated
- Legacy accessor
%s lexicon_text_struct. Superseeded bylexicon_textandlexicon_text_array.
Removed
- Removed a bunch of old settings that were no longer needed.
Lexicon v3.0.5
Added:
- Ability to refer to entries within entries
- Recursion detection for entries referred within entries.