Skip to content

Commit

Permalink
feat(lang): add translations for sharing stories in different languages
Browse files Browse the repository at this point in the history
  • Loading branch information
wlliaml committed Jul 29, 2024
1 parent f560997 commit 551d3de
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
6 changes: 6 additions & 0 deletions lang/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,9 @@
"CPvyYN": {
"defaultMessage": "Incorrect password"
},
"CjKqYk": {
"defaultMessage": "Share a story from your life"
},
"CnPG8j": {
"defaultMessage": "Featured"
},
Expand Down Expand Up @@ -1861,6 +1864,9 @@
"VBve8d": {
"defaultMessage": "Settled in Matters"
},
"VKxanK": {
"defaultMessage": "Moment Feature is Live"
},
"VZsE96": {
"defaultMessage": "Collection Name"
},
Expand Down
6 changes: 6 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,9 @@
"CPvyYN": {
"defaultMessage": "Incorrect password"
},
"CjKqYk": {
"defaultMessage": "Share a story from your life"
},
"CnPG8j": {
"defaultMessage": "Featured"
},
Expand Down Expand Up @@ -1861,6 +1864,9 @@
"VBve8d": {
"defaultMessage": "Settled in Matters"
},
"VKxanK": {
"defaultMessage": "Moment Feature is Live"
},
"VZsE96": {
"defaultMessage": "Collection Name"
},
Expand Down
6 changes: 6 additions & 0 deletions lang/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,9 @@
"CPvyYN": {
"defaultMessage": "密码错误"
},
"CjKqYk": {
"defaultMessage": "分享今天开心或难过的小故事吧"
},
"CnPG8j": {
"defaultMessage": "精选"
},
Expand Down Expand Up @@ -1861,6 +1864,9 @@
"VBve8d": {
"defaultMessage": "搬家到 Matters"
},
"VKxanK": {
"defaultMessage": "短动态上线喽!"
},
"VZsE96": {
"defaultMessage": "选集名称"
},
Expand Down
6 changes: 6 additions & 0 deletions lang/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,9 @@
"CPvyYN": {
"defaultMessage": "密碼錯誤"
},
"CjKqYk": {
"defaultMessage": "分享今天開心或難過的小故事吧"
},
"CnPG8j": {
"defaultMessage": "精選"
},
Expand Down Expand Up @@ -1861,6 +1864,9 @@
"VBve8d": {
"defaultMessage": "搬家到 Matters"
},
"VKxanK": {
"defaultMessage": "短動態上線囉!"
},
"VZsE96": {
"defaultMessage": "選集名稱"
},
Expand Down
11 changes: 9 additions & 2 deletions src/components/Layout/NavBar/NavBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react'
import { FormattedMessage } from 'react-intl'

import MATTY from '@/public/static/images/matty.png'

Expand All @@ -8,8 +9,14 @@ const NavBanner: React.FC = () => {
return (
<div className={styles.banner}>
<div className={styles.notificationText}>
短動態上線囉!
<div className={styles.subText}>分享今天開心或難過的小故事吧</div>
<FormattedMessage id="VKxanK" defaultMessage="Moment Feature is Live" />
<div className={styles.subText}>
<FormattedMessage
id="CjKqYk"
defaultMessage="Share a story from your life"
/>
</div>
</div>
<img src={MATTY.src} alt="Matty" className={styles.profileIcon} />
</div>
Expand Down

0 comments on commit 551d3de

Please sign in to comment.