Hong-Kong-Districts-Info / hktrafficcollisions

Shiny app dashboard of HK traffic collisions that result in injury. | 香港車禍傷亡資料庫:利用互動地圖和儀表版,將香港車禍位置和相關數據可視化。
Other
8 stars 2 forks source link

Feat: Complete traditional Chinese translation of website #82

Closed KHwong12 closed 2 years ago

KHwong12 commented 2 years ago

Summary

This branch completes the traditional Chinese translation of the website (except District Dashboard tab).

Changes

The changes made in this PR are:

  1. Set traditional Chinese (zh) as the default language of the website
  2. Complete traditional Chinese translation to Key Facts and Project Info tabs
  3. Remove the Data Download tab until the method of hosting data is resolved
  4. Add a description in the collision map filter tab that collision points shown are updated automatically after filters are changed

main-map

hotzone

key-facts

project-info


Check


Note

Both zh and en versions of the paragraphs in Key Facts and Project Info are shown regardless of the users' currently selected language. This is because paragraphs of both languages are stored in the same markdown file, then rendered to the website using includeMarkdown().

Showing only the paragraphs of the current language (may) require wrapping the section in renderUI(), then splitting the zh/en paragraphs into separate markdown files. The markdown going to be rendered then depends on the currently selected language.