In ImGui, and probably in general, utf-8 string literals must be preceded by the prefix 'u8'. For example, consider the string literal u8"こんにちは!テスト %d" found at:
https://github.com/ocornut/imgui/wiki/Loading-Font-Example.
Now, I would like to use .po files to implement my multilingual support, and under such a scheme, I would attempt calls like this: ImGui::Text(Translate("Hello! test"), 123), where the translation function would hopefully return u8"こんにちは!テスト %d" instead of just "こんにちは!テスト %d".
I believe I'm constrained by the following:
(1) PO files contain no u8 prefixes anywhere within the file; all strings are simply enclosed by double quotes
(2) I have no access to the translation function, which is provided by some library.
Within these constraints, how do I ensure that the translated string returned by the library function would still be u8, and thereby remaining compatible with ImGui?
(I'm new to cpp and this is just a tinkering sort of project, so my question might not make very much sense and I apologize in advance for that. I also performed a search for "string literal" on these forums but the search function appears at least offline for the moment)