Skip to content

Commit fbeada2

Browse files
committed
docs: add verification steps and change expected flow
1 parent f781ad0 commit fbeada2

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

local_setup.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,13 @@ Clone nodebb-fall-2025-jack and open it in a DevContainer.
7979

8080
## Verification Steps
8181

82-
- Create a **new post** (old posts won’t have `isEnglish` fields) with non-English content such as:
82+
- Note: **posts will take a while to translate** and **older posts will have the translation button but will not give translations. **
83+
- Create a **new post in a non-english language** (old posts won’t have `isEnglish` fields).
84+
ex post text: (thai)
8385
```
8486
นี่คือข้อความภาษาไทย
8587
```
88+
- Create a **new post in english language** if necessary to verify that the button still appears but upon clicking shows the original text
8689

8790
- If your microservice is running, you will see a **blue button** labeled:
8891
> “Click here to view the translated message.”
@@ -91,9 +94,11 @@ Clone nodebb-fall-2025-jack and open it in a DevContainer.
9194

9295

9396

97+
98+
9499
### Expected Results
95100

96-
- Posts with `isEnglish: true` → translation button still shows up
101+
- Posts with `isEnglish: true` → translation button still shows up but shows original english text
97102
- Posts with `isEnglish: false` → button appears and shows the translated message when clicked
98103

99104
<img width="888" height="191" alt="image" src="https://github.com/user-attachments/assets/9d226a1c-8e49-480c-87cd-692f73e552c7" />
@@ -152,6 +157,5 @@ Cmd+Shift+R (Mac)
152157
2. `src/posts/create.js` calls `translator.translate()`
153158
3. Translator calls your microservice
154159
4. Stores `isEnglish: false` and `translatedContent: "Hello world"`
155-
5. Template checks `{{{if !posts.isEnglish }}}`
156-
6. Button appears
157-
7. Click → translation shows
160+
5. Button appears
161+
6. Click → translation shows

0 commit comments

Comments
 (0)