⚠️ DEPRECATED: Moved to the mono repo kolplattformen/skolplattformen
Translations of curriculum codes to clear text descriptions
npm i -S @skolplattformen/embedded-api
or yarn add @skolplattformen/embedded-api
import parse from '@skolplattformen/curriculum'
// Swedish
parse('MU', 'sv') // { code: 'MU', category: '', name: 'Musik' }
parse('M1SP', 'sv') // { code: 'M1SP', category: 'Moderna språk, elevens val', name: 'Spanska' }
parse('M2TY', 'sv') // { code: 'M2TY', category: 'Moderna språk, språkval', name: 'Tyska' }
parse('MLSMI', 'sv') // { code: 'M2TY', category: 'Modersmål', name: 'Samiska' }
// English
parse('MU', 'en') // { code: 'MU', category: '', name: 'Music' }