mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 15:44:31 +03:00
dc7e14f888
This is a follow up to #7945. The current behaviour reads the locale and infers from that which type of time format should be used (12 hour/24 hour). However, in macOS you can override this behaviour, e.g. you can use en_US locale but still use the 24 hour clock format (Can be customized under Settings > General > Date & Format > 24-hour time). You can even customize the date format. This PR uses the macOS specific `CFDateFormatter` API, which outputs time format strings, that respect those settings. Partially fixes #7956 (as its not implemented for linux) Release Notes: - Added localization support for all macOS specific date and time configurations in chat
87 lines
2.3 KiB
TOML
87 lines
2.3 KiB
TOML
[package]
|
|
name = "collab_ui"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lib]
|
|
path = "src/collab_ui.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
default = []
|
|
stories = ["dep:story"]
|
|
test-support = [
|
|
"call/test-support",
|
|
"client/test-support",
|
|
"collections/test-support",
|
|
"editor/test-support",
|
|
"gpui/test-support",
|
|
"project/test-support",
|
|
"settings/test-support",
|
|
"util/test-support",
|
|
"workspace/test-support",
|
|
]
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
auto_update.workspace = true
|
|
call.workspace = true
|
|
channel.workspace = true
|
|
client.workspace = true
|
|
clock.workspace = true
|
|
collections.workspace = true
|
|
db.workspace = true
|
|
editor.workspace = true
|
|
extensions_ui.workspace = true
|
|
feature_flags.workspace = true
|
|
feedback.workspace = true
|
|
futures.workspace = true
|
|
fuzzy.workspace = true
|
|
gpui.workspace = true
|
|
language.workspace = true
|
|
lazy_static.workspace = true
|
|
log.workspace = true
|
|
menu.workspace = true
|
|
notifications.workspace = true
|
|
parking_lot.workspace = true
|
|
picker.workspace = true
|
|
postage.workspace = true
|
|
project.workspace = true
|
|
recent_projects.workspace = true
|
|
rich_text.workspace = true
|
|
rpc.workspace = true
|
|
schemars.workspace = true
|
|
serde.workspace = true
|
|
serde_derive.workspace = true
|
|
serde_json.workspace = true
|
|
settings.workspace = true
|
|
smallvec.workspace = true
|
|
story = { workspace = true, optional = true }
|
|
theme.workspace = true
|
|
theme_selector.workspace = true
|
|
time_format.workspace = true
|
|
time.workspace = true
|
|
ui.workspace = true
|
|
util.workspace = true
|
|
vcs_menu.workspace = true
|
|
workspace.workspace = true
|
|
zed_actions.workspace = true
|
|
sys-locale.workspace = true
|
|
|
|
[dev-dependencies]
|
|
call = { workspace = true, features = ["test-support"] }
|
|
client = { workspace = true, features = ["test-support"] }
|
|
collections = { workspace = true, features = ["test-support"] }
|
|
editor = { workspace = true, features = ["test-support"] }
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
notifications = { workspace = true, features = ["test-support"] }
|
|
pretty_assertions.workspace = true
|
|
project = { workspace = true, features = ["test-support"] }
|
|
rpc = { workspace = true, features = ["test-support"] }
|
|
settings = { workspace = true, features = ["test-support"] }
|
|
tree-sitter-markdown.workspace = true
|
|
util = { workspace = true, features = ["test-support"] }
|
|
workspace = { workspace = true, features = ["test-support"] }
|