Browse Source
packages add truth and dare and translate See merge request jetup/truthordare!4merge-requests/5/head
Coder
2 years ago
19 changed files with 222 additions and 106 deletions
After Width: | Height: | Size: 691 B |
@ -1,9 +1,7 @@
@@ -1,9 +1,7 @@
|
||||
import {MainLocaleModule} from '../../types'; |
||||
import {settingTranslation} from './settings.translation'; |
||||
import {onBoardingTranslation} from './steps.translation'; |
||||
import { packagesListTranslation } from './packages-list.translation'; |
||||
export const en: MainLocaleModule = { |
||||
settingTranslation, |
||||
stepTranslation: onBoardingTranslation, |
||||
packagesListTranslation |
||||
}; |
||||
|
@ -1,18 +0,0 @@
@@ -1,18 +0,0 @@
|
||||
import {PackagesListLocale} from '../../types/packages-list.types'; |
||||
export const packagesListTranslation: PackagesListLocale.Core = { |
||||
under18: { |
||||
title: 'Under 18', |
||||
description: |
||||
'Sharp questions and tasks for young people and of courseno alcohol.', |
||||
}, |
||||
light: { |
||||
title: 'Light', |
||||
description: |
||||
'Challenge your friends or your significant other and see how far they can go!', |
||||
}, |
||||
crazy: { |
||||
title: 'Crazy', |
||||
description: |
||||
'Challenge your friends or your significant other and see how far they can go!', |
||||
}, |
||||
}; |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
import {MainLocaleModule} from '../../types'; |
||||
import {settingTranslation} from './settings.translation'; |
||||
import {onBoardingTranslation} from './steps.translation'; |
||||
export const hi: MainLocaleModule = { |
||||
settingTranslation, |
||||
stepTranslation: onBoardingTranslation, |
||||
}; |
@ -1,2 +1,3 @@
@@ -1,2 +1,3 @@
|
||||
export * from './en'; |
||||
export * from './ua'; |
||||
export * from './hi'; |
||||
|
@ -1,10 +1,8 @@
@@ -1,10 +1,8 @@
|
||||
import {MainLocaleModule} from '../../types'; |
||||
import {settingTranslation} from './settings.translation'; |
||||
import {onBoardingTranslationUa} from './step.translation'; |
||||
import {packagesListTranslation} from './packages-list.translation'; |
||||
|
||||
export const ua: MainLocaleModule = { |
||||
stepTranslation: onBoardingTranslationUa, |
||||
settingTranslation: settingTranslation, |
||||
packagesListTranslation, |
||||
}; |
||||
|
@ -1,18 +0,0 @@
@@ -1,18 +0,0 @@
|
||||
import {PackagesListLocale} from '../../types/packages-list.types'; |
||||
export const packagesListTranslation: PackagesListLocale.Core = { |
||||
under18: { |
||||
title: 'до 18 років', |
||||
description: |
||||
'Гострі питання і завдання для молоді і звичайно без алкоголю.', |
||||
}, |
||||
light: { |
||||
title: 'легкий', |
||||
description: |
||||
'Киньте виклик своїм друзям або своїй другій половинці та подивіться, як далеко вони можуть зайти!', |
||||
}, |
||||
crazy: { |
||||
title: 'божевільний', |
||||
description: |
||||
'Киньте виклик своїм друзям або своїй другій половинці та подивіться, як далеко вони можуть зайти!', |
||||
}, |
||||
}; |
@ -1,8 +1,6 @@
@@ -1,8 +1,6 @@
|
||||
import {OnBoardingLocale} from './on-boarding.types'; |
||||
import {SettingLocale} from './settings.types'; |
||||
import {PackagesListLocale} from './packages-list.types'; |
||||
export interface MainLocaleModule { |
||||
stepTranslation: OnBoardingLocale.OnboardingSteps; |
||||
settingTranslation: SettingLocale.Core; |
||||
packagesListTranslation: PackagesListLocale.Core; |
||||
} |
||||
|
@ -1,12 +0,0 @@
@@ -1,12 +0,0 @@
|
||||
export namespace PackagesListLocale { |
||||
export interface IStep { |
||||
title: string; |
||||
description: string; |
||||
} |
||||
export interface Core { |
||||
under18: IStep; |
||||
light: IStep; |
||||
crazy: IStep; |
||||
} |
||||
} |
||||
|
@ -1,39 +0,0 @@
@@ -1,39 +0,0 @@
|
||||
import React from 'react'; |
||||
import {Image} from 'react-native'; |
||||
import {PackagesListLocale} from '../../../i18n/types/packages-list.types'; |
||||
const translatePath = ( |
||||
itemKey: keyof PackagesListLocale.Core, |
||||
key: keyof PackagesListLocale.IStep, |
||||
) => `packagesListTranslation.${itemKey}.${key}`; |
||||
export const DataPackage = [ |
||||
{ |
||||
title: translatePath('under18', 'title'), |
||||
description: translatePath('under18', 'description'), |
||||
image: ( |
||||
<Image |
||||
source={require('../../../assets/image/rabbit.png')} |
||||
style={{width: '100%', height: '100%'}} |
||||
/> |
||||
), |
||||
}, |
||||
{ |
||||
title: translatePath('light', 'title'), |
||||
description: translatePath('light', 'description'), |
||||
image: ( |
||||
<Image |
||||
source={require('../../../assets/image/feathers.png')} |
||||
style={{width: '100%', height: '100%'}} |
||||
/> |
||||
), |
||||
}, |
||||
{ |
||||
title: translatePath('crazy', 'title'), |
||||
description: translatePath('crazy', 'description'), |
||||
image: ( |
||||
<Image |
||||
source={require('../../../assets/image/hand.png')} |
||||
style={{width: '100%', height: '100%'}} |
||||
/> |
||||
), |
||||
}, |
||||
]; |
Loading…
Reference in new issue