Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add full surah button
  • Loading branch information
mmahalwy committed Apr 8, 2017
commit a9169bb2e9bc69ecb85f56debe8162937ac77324
7 changes: 7 additions & 0 deletions src/containers/ChapterInfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { asyncConnect } from 'redux-connect';

import Helmet from 'react-helmet';
import Loadable from 'react-loadable';
import Button from 'quran-components/lib/Button';
import ComponentLoader from 'components/ComponentLoader';
import LocaleFormattedMessage from 'components/LocaleFormattedMessage';
import { chapterType } from 'types';
import makeHeadTags from 'helpers/makeHeadTags';

Expand Down Expand Up @@ -50,6 +52,11 @@ const ChapterInfo = ({ chapter }) => (
chapter={chapter}
isShowingSurahInfo
/>
<div className="text-center">
<Button href={`/${chapter.id}`}>
<LocaleFormattedMessage id="surah.read" defaultMessage="Read full Surah" />
</Button>
</div>
</div>
);

Expand Down
1 change: 1 addition & 0 deletions src/locale/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default {
'surah.index.continue': 'استءنف',
'surah.index.quickLinks': 'روابط سريعة',
'surah.goToBeginning': 'ابتداء من سورة',
'surah.read': 'قراءة سورة كاملة',

'player.currentVerse': 'آية',
'player.nextAyah': 'آية القادمة',
Expand Down
1 change: 1 addition & 0 deletions src/locale/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default {
'surah.index.continue': 'Continue',
'surah.index.quickLinks': 'Quick links',
'surah.goToBeginning': 'Beginning of Surah',
'surah.read': 'Read full Surah',

'player.currentVerse': 'Ayah',
'player.nextAyah': 'Next Ayah',
Expand Down
2 changes: 1 addition & 1 deletion src/locale/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default {
'surah.index.continue': 'Continuer',
'surah.index.quickLinks': 'Liens rapides',
'surah.goToBeginning': 'Début de la Sourate',
'surah.read': 'Lire la sourate complète',

'player.currentVerse': 'Verset',
'player.nextAyah': 'Prochain Verset',
Expand Down Expand Up @@ -80,4 +81,3 @@ export default {
'login.message': 'Identifiez-vous sur Quran.com pour enregistrer tous vos favoris, notes et activités. '
}
};

1 change: 1 addition & 0 deletions src/locale/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default {
'surah.index.continue': 'Lanjutkan',
'surah.index.quickLinks': 'Tautan cepat',
'surah.goToBeginning': 'Awal Surat',
'surah.read': 'Baca lengkap Surah',

'player.currentVerse': 'Ayat',
'player.nextAyah': 'Ayat Berikutnya',
Expand Down
1 change: 1 addition & 0 deletions src/locale/tr.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default {
'surah.index.continue': 'Devam',
'surah.index.quickLinks': 'Hızlı bağlantılar',
'surah.goToBeginning': 'Sure Başlangıcı',
'surah.read': 'Tam suratı oku',

'player.currentAyah': 'Ayet',
'player.nextAyah': 'Sonraki Ayet',
Expand Down
1 change: 1 addition & 0 deletions src/locale/ur.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default {
'surah.index.continue': 'جاری رہے',
'surah.index.quickLinks': 'فوری لنک',
'surah.goToBeginning': 'سورہ کے شروع میں جائیں',
'surah.read': 'مکمل سورت پڑھیں',

'player.currentVerse': 'آیت',
'player.nextAyah': 'اگلی آیت',
Expand Down