WittleWolfie / WW-Blueprint-Core

A library to simplify modifying Pathfinder: Wrath of the Righteous.
MIT License
15 stars 5 forks source link

Create system to ease the use of localized strings #18

Closed vikigenius closed 2 years ago

vikigenius commented 2 years ago

It would be nice if methods such as SetLocalizedName have an overload to take standard strings and internally convert into a localized string.

It seems like implicit type conversion is not supported as an extension method and might be too much magic anyways. So actual overloads seems to be the way to go.

Can take ideas from Vek's localization helpers.

Can have a static dictionary in the BlueprintTool LocalizationMapping that maps string to localized string.

WittleWolfie commented 2 years ago

TODO: -Make use of LocalString in API -Add Harmony patch to load localization pack

WittleWolfie commented 2 years ago

Everything will launch in 2.1. Currently I'm opting not to allow implicitly creating strings but you can now write your strings in a JSON file and reference using key directly.