fixed references to stings, fixed tests

This commit is contained in:
Toastie 2025-01-29 23:28:04 +13:00
parent 3dcf08baf5
commit 12bcae137a
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7
7 changed files with 19 additions and 14 deletions
src/EllieBot.Generators

View file

@ -11,7 +11,7 @@ Project which contains source generators required for EllieBot project
-- How it works --
Creates a file "strs.cs" containing a class called "strs" in "EllieBot" namespace.
Loads "data/strings/responses.en-US.json" and creates a property or a function for each key in the responses json file based on whether the value has string format placeholders or not.
Loads "strings/responses.en-US.json" and creates a property or a function for each key in the responses json file based on whether the value has string format placeholders or not.
- If a value has no placeholders, it creates a property in the strs class which returns an instance of a LocStr struct containing only the key and no replacement parameters