fixed references to stings, fixed tests
This commit is contained in:
parent
3dcf08baf5
commit
12bcae137a
7 changed files with 19 additions and 14 deletions
src/EllieBot.Generators
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue