Translation system with on-the-fly switch and update that is still compatible with AoT compilation


I am looking for an internationalization library for my Ionic app with the following features:

  • being able load a translation file at runtime, which enables:
    • for the end-user, switching language at runtime
    • making a new language available WITHOUT compiling and publishing again to the app stores
    • publishing typo corrections on the spot, i.e. without compiling and publishing
  • but still be usable with ahead-of-time compilation
    • without hassles (an hassle being having to compile per-language variations)

What are your suggestions?