Is there a solution to generate diagrams for several languages (one PNG per language) with the same and unique description file ?
Could it be possible to manage language properties file (such as en_us.properties or fr_fr.properties in the same directory as the description file) and use the keys within the description file when generating PNG files (one per detected language).
Sample description file :
Alice -> Bob: @authentication.request
Bob --> Alice: @authentication.response
Alice -> Bob: @another.authentication.request
Alice <-- Bob: @another.authentication.response
Sample en_us.properties file :
authentication.request = Authentication Request
authentication.response = Authentication Response
another.authentication.request = Another authentication Request
another.authentication.request = Another authentication Response
The generated PNG file could have the en_us suffix at the end.
There is probably a better solution to do it without duplicating the description file
There may be a better way to do it without duplicating the description file but it would need some reflection before implementing it.
Thanks a lot.