feat: add localization for internal widget
This commit is contained in:
parent
f655710d55
commit
0942c67fa2
8 changed files with 86 additions and 12 deletions
16
Cargo.toml
16
Cargo.toml
|
|
@ -8,7 +8,7 @@ rust-version = "1.71"
|
|||
name = "cosmic"
|
||||
|
||||
[features]
|
||||
default = ["clipboard"]
|
||||
default = ["clipboard", "localization"]
|
||||
# Accessibility support
|
||||
a11y = ["iced/a11y", "iced_accessibility"]
|
||||
# Builds support for animated images
|
||||
|
|
@ -70,6 +70,7 @@ winit_tokio = ["winit", "tokio"]
|
|||
winit_wgpu = ["winit", "wgpu"]
|
||||
# Enables XDG portal integrations
|
||||
xdg-portal = ["ashpd"]
|
||||
localization = ["i18n-embed", "rust-embed", "i18n-embed-fl"]
|
||||
|
||||
[dependencies]
|
||||
apply = "0.3.0"
|
||||
|
|
@ -84,11 +85,14 @@ derive_setters = "0.1.5"
|
|||
fraction = "0.15.3"
|
||||
image = { version = "0.25.1", optional = true }
|
||||
lazy_static = "1.4.0"
|
||||
libc = { version = "0.2.155", optional = true }
|
||||
libc = { version = "0.2.155", optional = true }
|
||||
mime = { version = "0.3.17", optional = true }
|
||||
palette = "0.7.3"
|
||||
rfd = { version = "0.14.0", optional = true }
|
||||
rustix = { version = "0.38.34", features = ["pipe", "process"], optional = true }
|
||||
rustix = { version = "0.38.34", features = [
|
||||
"pipe",
|
||||
"process",
|
||||
], optional = true }
|
||||
serde = { version = "1.0.180", features = ["derive"] }
|
||||
slotmap = "1.0.6"
|
||||
smol = { version = "2.0.0", optional = true }
|
||||
|
|
@ -99,6 +103,12 @@ tracing = "0.1"
|
|||
unicode-segmentation = "1.6"
|
||||
url = "2.4.0"
|
||||
zbus = { version = "4.2.1", default-features = false, optional = true }
|
||||
i18n-embed = { version = "0.14", features = [
|
||||
"fluent-system",
|
||||
"desktop-requester",
|
||||
], optional = true }
|
||||
rust-embed = { version = "8.0", optional = true }
|
||||
i18n-embed-fl = { version = "0.8", optional = true }
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
freedesktop-icons = "0.2.5"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue