Skip to content

Commit

Permalink
i18n: change path for event fields
Browse files Browse the repository at this point in the history
  • Loading branch information
nelson2411 committed Feb 8, 2022
1 parent 06b7c13 commit ffe8885
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 68 deletions.
78 changes: 39 additions & 39 deletions locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,45 +67,6 @@ events:
post: Post
event: Event
save: Save
form:
eventName: Event Name
description: 'Use [widgets](https://wedance.vip/markdown), including images and videos',
when: When?
where: Where?
duration: How long?
thirtyMinutes: 30 minutes
oneHour: 60 minutes
ninetyMinutes: 1.5 hour
twoHours: 2 hours
threeHours: 3 hours
fourHours: 4 hours
fiveHours: 5 hours
custom: Custom
price:
description: Please include currency, i.e. EUR, USD
styles: Dance styles
organiser: Organiser
mode:
online: Online?
description: Streaming via Zoom, Google Meet, Instagram Live, etc.?
location:
international: International
description: Is it a big event with >500 guests, like festival or online?
place:
community: Community
description: Leave empty if you want your event to be shown in all cities
external:
registration: External registration?
link:
description: Direct booking link on ticket platform ([ti.to](https://ti.to/home), Eventbrite, Google Form, etc.)
facebook:
description: Facebook event
promo:
free: Do you want free promo?
description: 'Send us link to your event on [Instagram](https://instagram.com/wedancevip) and we will promote it on our social media channels: Telegram, Instagram, Facebook and Twitter.'
confirmation:
email: Confirmation email for guests
placeholder: 'Example: Dear guest, you are confirmed to our event.'
add: Add event
title: Dance Calendar
list:
Expand Down Expand Up @@ -494,6 +455,45 @@ event:
photographer: Photographer
musician: Musician
organiser: Organiser
eventName: Event Name
description: 'Use [widgets](https://wedance.vip/markdown), including images and videos',
when: When?
where: Where?
duration: How long?
thirtyMinutes: 30 minutes
oneHour: 60 minutes
ninetyMinutes: 1.5 hour
twoHours: 2 hours
threeHours: 3 hours
fourHours: 4 hours
fiveHours: 5 hours
custom: Custom
price:
description: Please include currency, i.e. EUR, USD
styles: Dance styles
organiser: Organiser
mode:
online: Online?
description: Streaming via Zoom, Google Meet, Instagram Live, etc.?
location:
international: International
description: Is it a big event with >500 guests, like festival or online?
place:
community: Community
description: Leave empty if you want your event to be shown in all cities
external:
registration: External registration?
link:
description: Direct booking link on ticket platform ([ti.to](https://ti.to/home), Eventbrite, Google Form, etc.)
facebook:
description: Facebook event
promo:
free: Do you want free promo?
description: 'Send us link to your event on [Instagram](https://instagram.com/wedancevip) and we will promote it on our social media channels: Telegram, Instagram, Facebook and Twitter.'
confirmation:
email: Confirmation email for guests
placeholder: 'Example: Dear guest, you are confirmed to our event.'

TInputProfile:
changeRole: Change Role
actions: Actions
Expand Down
58 changes: 29 additions & 29 deletions use/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,69 +163,69 @@ export const useEvents = () => {
{
name: 'name',
labelPosition: 'top',
placeholder: t('events.edit.form.eventName'),
placeholder: t('event.eventName'),
},
{
name: 'description',
labelPosition: 'top',
component: 'TInputTextarea',
placeholder: t('profile.story.placeholder'),
tips: t('profile.story.tips'),
description: t('events.edit.form.description'),
description: t('event.description'),
},
{
name: 'startDate',
type: 'datetime-local',
label: t('events.edit.form.when'),
label: t('event.when'),
labelPosition: 'top',
simple: true,
onChange: updateEndDate,
},
{
name: 'venue',
label: t('events.edit.form.where'),
label: t('event.where'),
labelPosition: 'top',
component: 'TInputVenue',
simple: true,
},
{
name: 'duration',
label: t('events.edit.form.duration'),
label: t('event.duration'),
labelPosition: 'top',
onChange: updateEndDate,
component: 'TInputSelect',
options: [
{
value: 30,
label: t('events.edit.form.duration.thirtyMinutes'),
label: t('event.duration.thirtyMinutes'),
},
{
value: 60,
label: t('events.edit.form.duration.oneHour'),
label: t('event.duration.oneHour'),
},
{
value: 90,
label: t('events.edit.form.duration.ninetyMinutes'),
label: t('event.duration.ninetyMinutes'),
},
{
value: 120,
label: t('events.edit.form.duration.twoHours'),
label: t('event.duration.twoHours'),
},
{
value: 180,
label: t('events.edit.form.duration.threeHours'),
label: t('event.duration.threeHours'),
},
{
value: 240,
label: t('events.edit.form.duration.fourHours'),
label: t('event.duration.fourHours'),
},
{
value: 300,
label: t('events.edit.form.duration.fiveHours'),
label: t('event.duration.fiveHours'),
},
{
value: 'custom',
label: t('events.edit.form.duration.custom'),
label: t('event.duration.custom'),
},
],
},
Expand All @@ -238,12 +238,12 @@ export const useEvents = () => {
name: 'price',
labelPosition: 'top',
placeholder: '',
description: t('events.edit.form.price.description'),
description: t('event.price.description'),
},
{
name: 'styles',
labelPosition: 'top',
label: t('events.edit.form.styles'),
label: t('event.styles'),
component: 'TInputStylesSelect2',
},
{
Expand Down Expand Up @@ -279,39 +279,39 @@ export const useEvents = () => {
{
name: 'org',
component: 'TInputProfile',
label: t('events.edit.form.organiser'),
label: t('event.organiser'),
labelPosition: 'top',
},
{
name: 'online',
label: t('events.edit.form.mode.online'),
label: t('event.mode.online'),
component: 'TInputButtons',
options: ['Yes', 'No'],
onChange: updatePlace,
description: t('events.edit.form.mode.description'),
description: t('event.mode.description'),
labelPosition: 'top',
},
{
name: 'international',
label: t('events.edit.form.location.international'),
label: t('event.location.international'),
labelPosition: 'top',
component: 'TInputButtons',
options: ['Yes', 'No'],
onChange: updatePlace,
description: t('events.edit.form.location.description'),
description: t('event.location.description'),
},
{
name: 'place',
label: t('events.edit.form.place.community'),
label: t('event.place.community'),
labelPosition: 'top',
component: 'TInputPlace',
clearable: true,
when: (answers) => answers.international === 'No',
description: t('events.edit.form.place.description'),
description: t('event.place.description'),
},
{
name: 'form',
label: t('events.edit.form.external.registration'),
label: t('event.external.registration'),
labelPosition: 'top',
before: 'Do you use external platform to register for your event?',
component: 'TInputButtons',
Expand All @@ -320,27 +320,27 @@ export const useEvents = () => {
{
name: 'link',
labelPosition: 'top',
description: t('events.edit.form.link.description'),
description: t('event.link.description'),
},
{
name: 'facebook',
labelPosition: 'top',
description: t('events.edit.form.facebook.description'),
description: t('event.facebook.description'),
},
{
name: 'promo',
label: t('events.edit.form.promo.free'),
label: t('event.promo.free'),
labelPosition: 'top',
component: 'TInputButtons',
options: ['Yes', 'No'],
description: t('events.edit.form.promo.description'),
description: t('event.promo.description'),
},
{
name: 'confirmation',
labelPosition: 'top',
label: t('events.edit.form.confirmation.email'),
label: t('event.confirmation.email'),
component: 'TInputTextarea',
placeholder: t('events.edit.form.confirmation.placeholder'),
placeholder: t('event.confirmation.placeholder'),
},
{
name: 'type',
Expand Down

0 comments on commit ffe8885

Please sign in to comment.