DioxusLabs / DioxusLabs/dioxus
dx translate does not include comments
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
`dx translate` does not include comments.
Input
```html
Short HTML Example
Hello, World!
Welcome to a minimal HTML example.
```
Output
```rsx
html {
lang: "en",
head {
meta { charset: "UTF-8" }
meta {
content: "width=device-width, initial-scale=1.0",
name: "viewport",
}
title { "Short HTML Example" }
}
body {
h1 { "Hello, World!" }
p { "Welcome to a minimal HTML example." }
}
}
```
Expected output
```rsx
html {
lang: "en",
head {
meta { charset: "UTF-8" }
meta {
content: "width=device-width, initial-scale=1.0",
name: "viewport",
}
title { "Short HTML Example" }
}
body {
// Simple content
h1 { "Hello, World!" }
p { "Welcome to a minimal HTML example." }
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.