Skip to content

Commit

Permalink
Merge pull request #483 from dev-protocol/feat-localization
Browse files Browse the repository at this point in the history
chore: update dependencies
  • Loading branch information
yashdesu authored May 27, 2024
2 parents 622fa8c + 6278cba commit 094af9b
Show file tree
Hide file tree
Showing 3 changed files with 6,333 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/components/Voting/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ watch(isPollOpen, (isOpen) => {
</label>
</div>
<div class="py-4 px-4 border-t border-gray-400">
<p class="text-gray-400 font-bold">Poll length</p>
<p class="text-gray-400 font-bold">{{ i18n('PollLength') }}</p>
<div class="flex justify-between gap-6">
<div class="w-1/3">
<label class="text-gray-400">Days</label>
<label class="text-gray-400">{{ i18n('Days') }}</label>
<div class="relative">
<select
v-model="days"
Expand All @@ -213,7 +213,7 @@ watch(isPollOpen, (isOpen) => {
</div>
</div>
<div class="w-1/3">
<label class="text-gray-400">Hours</label>
<label class="text-gray-400">{{ i18n('Hours') }}</label>
<div class="relative">
<select
v-model="hour"
Expand All @@ -238,7 +238,7 @@ watch(isPollOpen, (isOpen) => {
</div>
</div>
<div class="w-1/3">
<label class="text-gray-400">Minutes</label>
<label class="text-gray-400">{{ i18n('Minutes') }}</label>
<div class="relative">
<select
v-model="minute"
Expand Down
28 changes: 26 additions & 2 deletions src/components/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,27 @@ import type { ClubsI18nParts } from '@devprotocol/clubs-core'
export const Strings = {
RemovePoll: {
en: 'Remove poll',
ja: '投票を削除',
ja: '投票フォームをキャンセル',
},
PollLength: {
en: 'Poll length',
ja: '投票期間',
},
Days: {
en: 'Days',
ja: '日',
},
Hours: {
en: 'Hours',
ja: '時間',
},
Minutes: {
en: 'Minutes',
ja: '分',
},
ImmediateResultPublicationSettings: {
en: 'Immediate Result Publication Settings',
ja: '常に結果を表示する',
ja: '投票期間中に結果を表示する',
},
Unpublished: {
en: 'Poll Results are Unpublished',
Expand All @@ -21,4 +37,12 @@ export const Strings = {
en: 'Please wait until the voting period has ended.',
ja: '投票期間の終了までお待ちください',
},
LimitedAccess: {
en: 'Limited access',
ja: '限定アクセス',
},
Post: {
en: 'Post',
ja: '投稿',
},
} satisfies ClubsI18nParts
Loading

0 comments on commit 094af9b

Please sign in to comment.