Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Cataclysm
A post-apocalyptic roguelike. New features relative to C:Whales are scheduled for after 0.2.0, the savefile breaking release. (by zaimoni)
The best match I've found so far is https://github.com/caranatar/tracerz, which can help a lot, but it intended for use with random values, and I would have to handle some of the higher-level connections myself, like linking pronouns with pluralization, and handling past/present/future tenses on my own. I'm not afraid to do this, but I want to explore my options.
Even if you're not planning to translate your game into other languages, it might be worth looking into one of the localisation systems. For example, Mozilla's Fluent handles pluralisation, gender, etc..
I would not be averse to a library that fully developed this. However, that definitely is "hard mode". I haven't looked around carefully. (Gettext is not an option for the Cataclysm family of games -- as a copyleft license, GPL is incompatible with all other licenses that impose material restrictions, such as Creative Commons Share-Alike.)
Related posts
- Internationalize TypeScript app
- FTL loader
- Requesting feedback on a string interpolation concept
- Questions about a translation system
- l10n: A proc macros crate to ease project localization and provide compile time checks (message exists, mandatory arguments are set, functions are defined) built upon fluent-bundle.