The source code to the civic tech project Öppna Skolplattformen.
Go to file
Johan Öbrink 18c81264a0
feat: 🎸 Polish (#9)
2021-04-27 09:23:56 +02:00
.github/workflows feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
src feat: 🎸 Polish (#9) 2021-04-27 09:23:56 +02:00
.eslintrc.js feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
.gitignore feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
.prettierrc feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
.releaserc feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
LICENSE Initial commit 2021-04-12 18:19:17 +02:00
README.md Feat/multilang (#4) 2021-04-23 13:40:05 +02:00
jest.config.js feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
package.json chore: 🤖 More package fix 2021-04-12 18:37:40 +02:00
tsconfig.eslint.json feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00
tsconfig.json Feat/multilang (#4) 2021-04-23 13:40:05 +02:00
yarn.lock feat: 🎸 First implementation 2021-04-12 18:21:11 +02:00

README.md

curriculum

Translations of curriculum codes to clear text descriptions

Installing

npm i -S @skolplattformen/embedded-api or yarn add @skolplattformen/embedded-api

Calling

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' }