Lock Android v1 Internationalization


This document covers an outdated version of Lock for Android. We recommend you to upgrade to v2

By default, Lock.Android displays all text in English. If you wish to display text in another language, you may provide a strings.xml file and define values to be used for the various text items that Lock might display.

Android asks the device what locale was configured by the user and tries to fetch the list of localized texts for that language. For this to work, the developer needs to add each translation file into the app by using a special folder naming convention as per Android standards. More information can be found in the Android developer docs.

Some of the default values provided by Lock include:

  <string name="sms_login_btn_text">Login SMS</string>
  <string name="no_login_text">Login not found</string>

By providing your own strings.xml file, these values can be adjusted as such:

  <string name="sms_login_btn_text">Login with SMS</string>
  <string name="no_login_text">This user was not found!</string>

Lock String Values

For a full list of the names used by Lock, see the default strings.xml file in the Lock.Android repository.

Was this article helpful?