Re: Multi language support in webapp

2018-02-10 Thread mratsim
There is a [parsecfg](https://nim-lang.org/docs/parsecfg.html) module. Or you can use [NimYAML](https://nimyaml.org/)

Re: Multi language support in webapp

2018-02-08 Thread ThomasTJdev
Thank you for the suggestion alexsad. But when using constants, I can't figure out how to access them with a dynamic reference. With my current _tables_ solution, I can access the item based on the host and language by concentrating the users elements: # langGet[identifier & "_"

Re: Multi language support in webapp

2018-02-08 Thread alexsad
After rework this exmaple [https://nim-lang.org/docs/tut2.html#building-your-first-macro-generating-source-code](https://nim-lang.org/docs/tut2.html#building-your-first-macro-generating-source-code) import macros, strutils var cfgFile = """title_ENh = Hubanize title_DKh

Multi language support in webapp

2018-02-07 Thread ThomasTJdev
I'm developing a [webapp](https://cxmanager.live) with Nim as the backend. I need to support multiple languages with an easy and quick way to add further language support. Besides supporting multiple languages, I also need the return to be based on the host. I have found a way which works