diff --git a/index.js b/index.js index cd10803..fb6e0f4 100644 --- a/index.js +++ b/index.js @@ -45,4 +45,29 @@ module.exports.getStates = (language) => { } return statesList +} + +module.exports.getFederalTerritories = (language) => { + + let federalTerritoriesList + + if (language === 'en' | language === 'ms') { + federalTerritoriesList = { + federal_territories: [ + 'Kuala Lumpur', + 'Labuan', + 'Putrajaya' + ] + } + } else if (language === 'zh') { + federalTerritoriesList = { + federal_territories: [ + '吉隆坡', + '纳闽', + '布城' + ] + } + } + + return federalTerritoriesList } \ No newline at end of file diff --git a/package.json b/package.json index 7dcf761..d5c94a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "malaysia-list", - "version": "0.0.3", + "version": "0.0.4", "description": "This package will display all lists related to Malaysia", "main": "index.js", "scripts": {