Localization alternative to Resx file

Why I do not want to use Resx files:

I am looking for an alternative for resx files offering multilingual support for my project for the following reasons:

  • I don’t like to indicate “messageId” when writing messages, it’s more effort and it’s annoying to stream, because I don’t see what the message in the log really says, and I will need to open another tab for editing the message
  • Sometimes I use inline code because I don’t want to create new variables for simple steps (e.g. Log.Info("Iterated {i+1} times");). Using variables or performing simple inline calculations makes the code as a whole clearer than creating additional code lines

Instead, I could imagine:

An external application that scans the compiled exe for all lines gives you the ability to ignore / add lines that need to be translated. It can also create XML or Json file for all languages. It would replace all lines with the / id hash so that string search for all languages ​​is still possible.

Am I the only one unhappy with the commonly used Resx / centralized db solution? Can I skip the points why this would not be a good idea?

+4
source share
1 answer

. , : , , . , , , , , .., , .

, , , . , , , , . , , , , , , - .

, Log.Info("Iterated {i+1} times");, . (. Unicode Language Multural Rules ). , - , , .

: , . , . , , , - , , ? , , , XML. XLIFF : XLIFF.

+2

Source: https://habr.com/ru/post/1663467/


All Articles