Skip to content

Commit e7d2d1b

Browse files
Merge branch 'main' into fix/signin
2 parents 84ad0c4 + ffe33b2 commit e7d2d1b

File tree

4 files changed

+475
-212
lines changed

4 files changed

+475
-212
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,20 @@
6060
"@astrojs/svelte": "^5.0.0",
6161
"@astrojs/tailwind": "^5.0.0",
6262
"@astrojs/vue": "^4.0.0",
63-
"@devprotocol/clubs-core": "3.12.10",
63+
"@devprotocol/clubs-core": "3.13.2",
6464
"@nanostores/vue": "^0.10.0",
6565
"@redis/json": "^1.0.4",
6666
"@rollup/plugin-typescript": "11.1.6",
6767
"@tailwindcss/typography": "^0.5.10",
6868
"@types/dompurify": "^3.0.2",
6969
"@types/dotenv": "8.2.0",
7070
"@types/marked": "^6.0.0",
71-
"@types/node": "20.13.0",
71+
"@types/node": "20.14.2",
7272
"@types/ramda": "0.30.0",
7373
"@types/uuid": "^9.0.2",
7474
"@typescript-eslint/eslint-plugin": "5.62.0",
7575
"@typescript-eslint/parser": "5.62.0",
76-
"astro": "4.9.2",
76+
"astro": "4.9.3",
7777
"dotenv": "16.4.5",
7878
"eslint": "8.57.0",
7979
"eslint-config-prettier": "9.1.0",
@@ -82,15 +82,15 @@
8282
"husky": "9.0.11",
8383
"jsdom": "^24.0.0",
8484
"nanostores": "^0.10.0",
85-
"prettier": "3.3.0",
85+
"prettier": "3.3.1",
8686
"prettier-plugin-astro": "^0.14.0",
8787
"prettier-plugin-svelte": "^3.0.0",
8888
"prettier-plugin-tailwindcss": "^0.6.0",
8989
"rimraf": "5.0.7",
9090
"rollup": "4.18.0",
9191
"rollup-plugin-dts": "^6.0.2",
9292
"svelte": "^4.2.1",
93-
"tailwindcss": "3.4.3",
93+
"tailwindcss": "3.4.4",
9494
"txtgen": "^3.0.6",
9595
"typescript": "5.4.5",
9696
"vitest": "^1.2.1",

src/components/Page/Posts/Comment.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,20 @@ import {
66
encode,
77
type ClubsProfile,
88
} from '@devprotocol/clubs-core'
9-
import { ref } from 'vue'
9+
import { ref, onMounted } from 'vue'
1010
import Profile from '../../Common/Profile.vue'
1111
import type { Comment, CommentPrimitives } from '../../../types'
1212
import IconSend from '../../../assets/images/icon-send.svg'
1313
import IconTrash from '../../../assets/images/icon-trash.svg'
1414
import { getSignature, getMessage } from '../../../fixtures/session'
1515
import DOMPurify from 'dompurify'
1616
import { marked } from 'marked'
17+
import { i18nFactory } from '@devprotocol/clubs-core'
18+
19+
import { Strings } from './i18n'
20+
21+
const i18nBase = i18nFactory(Strings)
22+
let i18n = ref<ReturnType<typeof i18nBase>>(i18nBase(['en']))
1723
1824
type Props = {
1925
feedId: string
@@ -201,6 +207,10 @@ const deleteComment = async (commentId: string) => {
201207
}
202208
}
203209
}
210+
211+
onMounted(() => {
212+
i18n.value = i18nBase(navigator.languages)
213+
})
204214
</script>
205215

206216
<template>
@@ -253,7 +263,7 @@ const deleteComment = async (commentId: string) => {
253263
class="w-11/12 bg-transparent rounded border border-gray-400 px-2 py-2 text-base text-gray-700 focus:border-indigo-500 focus:outline-none"
254264
type="text"
255265
v-model="newComment"
256-
placeholder="Add your thoughts..."
266+
:placeholder="i18n('AddYourThoughts')"
257267
:disabled="isCommenting"
258268
/>
259269
<button

src/components/Page/Posts/i18n/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { ClubsI18nParts } from '@devprotocol/clubs-core'
22

33
export const Strings = {
4+
AddYourThoughts: { en: 'Add your thoughts...', ja: 'コメントを入力' },
45
Post: { en: 'Post', ja: '投稿する' },
56
Title: { en: 'Title', ja: '件名' },
67
WhatsHappening: { en: "What's happening", ja: '本文' },

0 commit comments

Comments
 (0)