Localisation – GBG IDscan Documentation

Localisation

MJCS supports localisation. You can find all keys inside provided MJCS package, there’s a folder called Localisation

There are 2 ways to implement localisation:

1. Using device region settings

Just implement all the keys into your tablename.strings file and provide the file name to MJCS. Depending on device settings, iOS will automatically choose which language to use

Swift

MJCS.sharedInstance().globalConfig = IDSGlobalConfig.builder().withCustomLocalization(tableName: tablename, inBundle: nil) 

2. Manually specifying which language you would like to use not depending on device settings

If you don’t want to depend on device region, you can implement all keys into separate strings files and specify it to MJCS. As an example, add all keys to localizable-de.strings, then:

Swift

MJCS.sharedInstance().globalConfig = IDSGlobalConfig.builder().withCustomLocalization(tableName: "localizable-de", inBundle: nil) 

Was this page helpful?