-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f89a528
commit 866ee12
Showing
4 changed files
with
88 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
const global = require('../helpers/global') | ||
const { LANGUAGES } = require('../helpers/constants') | ||
|
||
module.exports = () => { | ||
let primeMinistersList | ||
|
||
switch (global.getDefaultLanguage()) { | ||
case LANGUAGES.ENGLISH: | ||
case LANGUAGES.MALAY: | ||
primeMinistersList = { | ||
prime_ministers: [ | ||
'Tunku Abdul Rahman Putra Al-Haj ibni Almarhum Sultan Abdul Hamid Halim Shah', | ||
'Tun Haji Abdul Razak bin Dato\' Hussein', | ||
'Tun Hussein bin Dato\' Onn', | ||
'Mahathir bin Mohamad', | ||
'Abdullah bin Haji Ahmad Badawi', | ||
'Mohammad Najib bin Tun Haji Abdul Razak', | ||
'Mahathir bin Mohamad', | ||
'Muhyiddin bin Haji Muhammad Yassin' | ||
] | ||
} | ||
break | ||
case LANGUAGES.CHINESE: | ||
primeMinistersList = { | ||
prime_ministers: [ | ||
'东古·阿卜杜勒·拉赫曼', | ||
'阿卜杜勒·拉扎克·侯赛因', | ||
'侯赛因·奥恩', | ||
'马哈蒂尔·穆罕默德', | ||
'阿卜杜拉·巴达维', | ||
'纳吉布·阿卜杜勒·拉扎克', | ||
'马哈蒂尔·穆罕默德', | ||
'穆希丁·雅辛' | ||
] | ||
} | ||
break | ||
default: | ||
break | ||
} | ||
|
||
return primeMinistersList | ||
} |
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