Skip to content

Commit

Permalink
Merge pull request #12112 from bbc/WSTEAMA-1419-uzbek-timestamps
Browse files Browse the repository at this point in the history
WSTEAMA-1419: Translations for uzbek timestamps
  • Loading branch information
karinathomasbbc authored Nov 1, 2024
2 parents 7fe2b2d + ae9cac5 commit 171d349
Show file tree
Hide file tree
Showing 10 changed files with 709 additions and 187 deletions.
1 change: 1 addition & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const storybookConfig: StorybookConfig = {
stories: [
'../src/app/legacy/components/**/*.stories.@(t|j)sx',
'../src/app/legacy/containers/**/*.stories.@(t|j)sx',
'../src/app/legacy/psammead/psammead-locales/**/*.stories.@(t|j)sx',
'../src/app/components/**/*.stories.@(t|j)sx',
'../src/app/pages/**/*.stories.@(t|j)sx',
'./DocsDecorator/**/*.stories.@(t|j)sx',
Expand Down
8 changes: 8 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,14 @@ const preview: Preview = {
value: { service: 'uzbek', variant: 'default' },
title: 'uzbek',
},
{
value: { service: 'uzbek', variant: 'cyr' },
title: 'uzbek-cyr',
},
{
value: { service: 'uzbek', variant: 'lat' },
title: 'uzbek-lat',
},
{
value: { service: 'vietnamese', variant: 'default' },
title: 'vietnamese',
Expand Down
22 changes: 22 additions & 0 deletions .storybook/withServicesDecorator/text-variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,28 @@ const TEXT_VARIANTS: Record<string, TextVariant> = {
timezone: 'GMT',
articlePath: '/uzbek/articles/cxj3rjxm6r0o',
},
uzbekCyr: {
service: 'uzbek',
variant: 'cyr',
text: 'Дариға Назарбоева Қозоғистон президентининг Британияга охирги сафарида отасига ҳамроҳлик',
longText:
'Ўзбекистон: 12 йиллик муҳожиратдан кейин Ватанга қайтган фаол вафот этди - Толиб Ёқубов мустақил Ўзбекистондаги илк ва энг таниқли инсон ҳуқуқлари ҳимоячиларидан бири эди. У Каримов даврида Ўзбекистонни тарк этишга мажбур бўлган, муҳожиратда экан, фуқароликдан маҳрум этилганди.',
script: 'cyrillic',
locale: 'uz',
timezone: 'GMT',
articlePath: '/uzbek/articles/cxj3rjxm6r0o/cyr',
},
uzbekLat: {
service: 'uzbek',
variant: 'lat',
text: "Darig'a Nazarboeva Qo'zog'iston prezidentining hayotiga oxiri safarda otasiga hamrohlik",
longText:
"O'zbekiston: 12 yil muhojiratdan keyin Vatanga qaytgan faol vafot etdi - Tolib Yoqubov O'zbekistondagi birinchi va eng tanish inson huquqlari himoyachilaridan biri edi. U Karimov davrida O'zbekistonni qo'llab-quvvatlash uchun zarur, muhojiratda ekan, harakatlanishdan foydalanishdi.",
script: 'latin',
locale: 'uz',
timezone: 'GMT',
articlePath: '/uzbek/articles/cxj3rjxm6r0o/lat',
},
vietnamese: {
text: 'Ông Nazarbayev bất ngờ tuyên bố từ chức hôm 19/3/2019',
longText:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,12 +471,12 @@
"exact date and time with timezone": "12 июл 2019, 12:55 GMT"
},
"lat": {
"one minute ago": "1 дақиқа аввал",
"five minutes ago": "5 дақиқалар аввал",
"one hour ago": "1 cоат аввал",
"five hours ago": "5 соатлар аввал",
"exact date": "10 октябр 2018",
"exact date and time with timezone": "12 июл 2019, 12:55 GMT"
"one minute ago": "1 daqiqa avval",
"five minutes ago": "5 daqiqalar avval",
"one hour ago": "1 soat avval",
"five hours ago": "5 soatlar avval",
"exact date": "10 Oktabr 2018",
"exact date and time with timezone": "12 Iyul 2019, 12:55 GMT"
}
},
"vietnamese": {
Expand Down
Loading

0 comments on commit 171d349

Please sign in to comment.