Translation for top reviews(1011)
Document Feature
Title
Translation for top reviews
Description / Background
The majority of our reviews are in Thai, and reviews are one of the key drivers for users to make the booking. As we are trying to attract expats and tourists, English or other languages in the reviews would help with the conversion.
Objectives
- User can read review with english translation, if user browse in English.
- Internal staff must be able to edit or add a translation to each review.
Scope
- For all Device (Web/Ios/Android)
- The user can automatically see the translation of the top 10 reviews (we will use the same top review criteria of 5 stars+/3 pics+/written review).
- Every 24 hours, the system will automatically refresh and translate again
- All of the translated reviews will be collected in our database, which is our admin dashboard (on the review section).
- We will translate for active restaurants only.
- Add Translated Title, Short Description, and Blogger Website Post on admin dashboard Blogger Reviews page.
- Add Translated Review field on admin dashboard customer review page.
Sequence Diagram / Flow
ERD
DB Schema / Database Migration
| Column Name | Data Type | Description |
|---|---|---|
API Blueprint
| Method | Path | URL | Description |
|---|---|---|---|
New Query
Notes, Constraint & Assumptions
TODO / Task List / Action Items
[
Basecamp Log In
https://3.basecamp.com/5190892/buckets/29223917/todosets/5307664919
](https://3.basecamp.com/5190892/buckets/29223917/todosets/5307664919)
References
UI Design : https://www.figma.com/file/RB6vRsKHLEDiburCVcwOda/Translation-for-top-reviews?node-id=31%3A4
Change History
| NO | Date Time | What Chaged | Description |
|---|---|---|---|
| 1 | 18 Oct 2022 | - | Initial Document |
Feature Implementation
Where did you find this feature?
Manual Translation
Admin can translate the review manually from https://hungryhub.com/admin/reviews?locale=th and from https://hungryhub.com/admin/blogger_reviews?locale=th
How to use this feature
Backend Implementation
- Backend needs to translate 10 reviews for every active restaurant, the reviews are top reviews, which have a high score, every day.
- For translation we use: https://docs.aws.amazon.com/translate/latest/APIReference/API_TranslateText.html
- If client request X-HH-Language with english, then backend return review with translated review.
Frontend Implementation
-