79469101

Date: 2025-02-26 09:11:26
Score: 1
Natty:
Report link

Localization - Best Practices

(Not sure if it's ok on stackoverflow to add additional question to my original question, but opening a new thread sesms like overkill)

I was researching best-practices for localization files, but couldn't find anything useful:

Any advices how to structure these files, naming conventions, etc... (Maybe real-life repos examples - couldn't find any either)

Currently it looks something like this:

 <data name="view_list" xml:space="preserve">
        <value>My List-View Title</value>
    </data>
    <data name="view_list_button_add" xml:space="preserve">
        <value>My List-View add button text</value>
    </data>
    <data name="view_list_headding1" xml:space="preserve">
        <value>My List-View Heading One</value>
    </data>
    <data name="view_list_headding2" xml:space="preserve">
        <value>My List-View Heading Two</value>
    </data>

... and so on. And like this for 3 languages.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dura