mirror of
https://github.com/bitwarden/android.git
synced 2025-12-10 09:56:45 -06:00
[PM-23817] Move PM string to UI module and update Crowdin configuration (#5550)
This commit is contained in:
parent
d32b4c7c7e
commit
987639b2a3
@ -31,6 +31,7 @@ import com.bitwarden.ui.platform.components.appbar.BitwardenTopAppBar
|
||||
import com.bitwarden.ui.platform.components.button.BitwardenStandardIconButton
|
||||
import com.bitwarden.ui.platform.components.util.rememberVectorPainter
|
||||
import com.bitwarden.ui.platform.resource.BitwardenDrawable
|
||||
import com.bitwarden.ui.platform.resource.BitwardenString
|
||||
import com.x8bit.bitwarden.R
|
||||
import com.x8bit.bitwarden.ui.platform.components.dialog.BitwardenBasicDialog
|
||||
import com.x8bit.bitwarden.ui.platform.components.dialog.BitwardenLoadingDialog
|
||||
@ -194,7 +195,7 @@ private fun PrivilegedAppsListContent(
|
||||
BitwardenStandardIconButton(
|
||||
vectorIconRes = BitwardenDrawable.ic_delete,
|
||||
contentDescription =
|
||||
stringResource(R.string.delete_x, item.packageName),
|
||||
stringResource(BitwardenString.delete_x, item.packageName),
|
||||
onClick = remember(item) {
|
||||
{ onDeleteClick(item) }
|
||||
},
|
||||
|
||||
@ -1,10 +1,14 @@
|
||||
project_id_env: _CROWDIN_PROJECT_ID
|
||||
api_token_env: CROWDIN_API_TOKEN
|
||||
preserve_hierarchy: true
|
||||
base_path: "app/src/main"
|
||||
files:
|
||||
- source: "/res/values/strings.xml"
|
||||
translation: "/res/values-%android_code%/%original_file_name%"
|
||||
- source: "/app/src/main/res/values/strings.xml"
|
||||
translation: "/app/src/main/res/values-%android_code%/%original_file_name%"
|
||||
dest: "/android/%original_file_name%"
|
||||
update_option: update_as_unapproved
|
||||
type: android
|
||||
- source: "/ui/src/main/res/values/strings.xml"
|
||||
translation: "/ui/src/main/res/values-%android_code%/%original_file_name%"
|
||||
dest: "/android-ui/%original_file_name%"
|
||||
update_option: update_as_unapproved
|
||||
type: android
|
||||
|
||||
@ -4,3 +4,8 @@ package com.bitwarden.ui.platform.resource
|
||||
* A type alias for the drawable resources in the Bitwarden UI module.
|
||||
*/
|
||||
typealias BitwardenDrawable = com.bitwarden.ui.R.drawable
|
||||
|
||||
/**
|
||||
* A type alias for the string resources in the Bitwarden UI module.
|
||||
*/
|
||||
typealias BitwardenString = com.bitwarden.ui.R.string
|
||||
|
||||
4
ui/src/main/res/values/strings.xml
Normal file
4
ui/src/main/res/values/strings.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="delete_x">Delete %s</string>
|
||||
</resources>
|
||||
Loading…
x
Reference in New Issue
Block a user