mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-1952 l10n | Enhancement | Send analytics about interface language (#644)
This commit is contained in:
parent
e21c68ba16
commit
0b1b9cefc1
22 changed files with 133 additions and 36 deletions
|
@ -0,0 +1,13 @@
|
|||
package com.anytypeio.anytype.device
|
||||
|
||||
import android.content.Context
|
||||
import androidx.core.os.ConfigurationCompat
|
||||
import com.anytypeio.anytype.domain.misc.LocaleProvider
|
||||
|
||||
class DefaultLocalProvider(
|
||||
private val context: Context
|
||||
): LocaleProvider {
|
||||
override fun language(): String? {
|
||||
return ConfigurationCompat.getLocales(context.resources.configuration)[0]?.language
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue