forked from deriv-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WALL] Aizad/WALL-4655/Translating the migration video to Arabic (der…
…iv-com#16570) * chore: added logic to show the correct video based on language selected * chore: updated current language from useTranslations to commmon store * chore: update video-player to support rtl * chore: added arabic video * chore: added key for seamless translations * chore: updated values within video-player component
- Loading branch information
1 parent
7356879
commit de7d139
Showing
7 changed files
with
43 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/appstore/src/constants/wallet-migration-video-translations.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const WALLET_MIGRATION_VIDEO_TRANSLATIONS = { | ||
AR: 'e52c6a3b483e287e39e983791f50e592', | ||
EN: '25df7df0d0af48090b086cd6f103d8f3', | ||
// TODO: Add translations for other languages | ||
} as const; | ||
|
||
export const getWalletMigrationVideoTranslations = (language_key: keyof typeof WALLET_MIGRATION_VIDEO_TRANSLATIONS) => { | ||
if (language_key in WALLET_MIGRATION_VIDEO_TRANSLATIONS) { | ||
return WALLET_MIGRATION_VIDEO_TRANSLATIONS[language_key]; | ||
} | ||
return WALLET_MIGRATION_VIDEO_TRANSLATIONS.EN; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters