There is a lot of text and other information in my application that I want to store in the database, but I have a question, can I somehow create the database depending on the language selected on the device? For example, you can do this with string.xml resources, but how to do the same with a database (I understand that a database with a different language should be created, I don’t understand how to create the necessary database)? Thank.

  • one
    You can use the locale name when opening \ checking the existence \ creating a database in the database file name, for example EN-myDatabase.sqlite , RU-myDatabase.sqlite - Vladyslav Matviienko
  • Can I have a little more detail, or read about it somewhere? I will be grateful. - Ivan
  • The database is stored in a file. Fayal has a name. You can use the prefix in the filename with the name of the locale. - Vladyslav Matviienko September

0