What's the recommended way to get the localisation text gatherer to collect data from .CSV files?

What’s the recommended way to get the localisation text gatherer to collect data from .CSV files?

I’m setting up localisation support for my game and for now I have told it to just search /Source … It works because it’s looking for the LOCTABLE_FROMFILE_GAME macro, which is in my game module’s StartupModule(). But I feel like telling it to search the entirety of /Source is a recipe for pain down the line.

Try Data Assets.

Profits of data assets:

  • they do not create references, so everything is decoupled
  • non coder people can create new ones and modify
  • there is asset manager that loads them and scans folders

so in your case:

  • create CSV files in some folder, name them etc.
  • create Data assets that has either file name or soft reference to CSV file, it is like structure, you can add more things that you need, like font, language name, etc.
  • add that Data Asset to asset manager
  • make function that loads data asset then reads CSV and follows normal way of localisation

then create base data asset with default language, copy it and modify for next language and so on.