DioxusLabs / DioxusLabs/dioxus

dx translate does not include comments

Open
#3,712 0 comments 0 reactions 0 assignees View on GitHub
rosetta
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.