-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only show the review for supported languages.
- Loading branch information
1 parent
4c17ff8
commit f0c1274
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package voice.review | ||
|
||
import android.content.Context | ||
import javax.inject.Inject | ||
|
||
class ReviewTranslated | ||
@Inject constructor( | ||
private val context: Context, | ||
) { | ||
|
||
fun translated(): Boolean { | ||
val language = context.resources.configuration.locales[0].language.lowercase() | ||
return language in listOf("en", "de") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters