mirror of
https://github.com/bitwarden/android.git
synced 2026-04-29 04:18:52 -05:00
[PM-23817] Move PM string to UI module and update Crowdin configuration (#5550)
This commit is contained in:
@@ -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.button.BitwardenStandardIconButton
|
||||||
import com.bitwarden.ui.platform.components.util.rememberVectorPainter
|
import com.bitwarden.ui.platform.components.util.rememberVectorPainter
|
||||||
import com.bitwarden.ui.platform.resource.BitwardenDrawable
|
import com.bitwarden.ui.platform.resource.BitwardenDrawable
|
||||||
|
import com.bitwarden.ui.platform.resource.BitwardenString
|
||||||
import com.x8bit.bitwarden.R
|
import com.x8bit.bitwarden.R
|
||||||
import com.x8bit.bitwarden.ui.platform.components.dialog.BitwardenBasicDialog
|
import com.x8bit.bitwarden.ui.platform.components.dialog.BitwardenBasicDialog
|
||||||
import com.x8bit.bitwarden.ui.platform.components.dialog.BitwardenLoadingDialog
|
import com.x8bit.bitwarden.ui.platform.components.dialog.BitwardenLoadingDialog
|
||||||
@@ -194,7 +195,7 @@ private fun PrivilegedAppsListContent(
|
|||||||
BitwardenStandardIconButton(
|
BitwardenStandardIconButton(
|
||||||
vectorIconRes = BitwardenDrawable.ic_delete,
|
vectorIconRes = BitwardenDrawable.ic_delete,
|
||||||
contentDescription =
|
contentDescription =
|
||||||
stringResource(R.string.delete_x, item.packageName),
|
stringResource(BitwardenString.delete_x, item.packageName),
|
||||||
onClick = remember(item) {
|
onClick = remember(item) {
|
||||||
{ onDeleteClick(item) }
|
{ onDeleteClick(item) }
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,10 +1,14 @@
|
|||||||
project_id_env: _CROWDIN_PROJECT_ID
|
project_id_env: _CROWDIN_PROJECT_ID
|
||||||
api_token_env: CROWDIN_API_TOKEN
|
api_token_env: CROWDIN_API_TOKEN
|
||||||
preserve_hierarchy: true
|
preserve_hierarchy: true
|
||||||
base_path: "app/src/main"
|
|
||||||
files:
|
files:
|
||||||
- source: "/res/values/strings.xml"
|
- source: "/app/src/main/res/values/strings.xml"
|
||||||
translation: "/res/values-%android_code%/%original_file_name%"
|
translation: "/app/src/main/res/values-%android_code%/%original_file_name%"
|
||||||
dest: "/android/%original_file_name%"
|
dest: "/android/%original_file_name%"
|
||||||
update_option: update_as_unapproved
|
update_option: update_as_unapproved
|
||||||
type: android
|
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.
|
* A type alias for the drawable resources in the Bitwarden UI module.
|
||||||
*/
|
*/
|
||||||
typealias BitwardenDrawable = com.bitwarden.ui.R.drawable
|
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>
|
||||||
Reference in New Issue
Block a user