Final answer:
The best practice of storing an app's display text in a separate file facilitates the process of making the app work in multiple languages, which is known as localization. Localization enhances user experience by adapting the app to different languages and regions.
Step-by-step explanation:
It's generally considered a best practice to store the display text for your app in a separate file. This makes it easy to make your app work in multiple languages.
By segregating display text from the code, developers can easily localize their applications. Localizing an app involves adapting the app to different languages, regional differences, and technical requirements of a target market. This process, often referred to as internationalization, allows for greater flexibility and accessibility, enhancing the user experience for a global audience.
Localization files, such as XML or JSON resource files, can be used to store strings in different languages. During the development process, developers reference these strings within their code instead of hard-coding text. When the app is run, it can dynamically select the appropriate language resources based on the user's language settings.