skolplattformen-backup/libs/curriculum
Jonathan Edenström d90cfd2a3b feat: add nx build system 2021-10-05 17:27:47 +02:00
..
src Move curriculum project to libs/curriculum before moving to monorepo 2021-10-03 11:52:24 +02:00
.babelrc feat: add nx build system 2021-10-05 17:27:47 +02:00
.eslintrc.json feat: add nx build system 2021-10-05 17:27:47 +02:00
.gitignore Move curriculum project to libs/curriculum before moving to monorepo 2021-10-03 11:52:24 +02:00
.prettierrc feat: add nx build system 2021-10-05 17:27:47 +02:00
.releaserc Move curriculum project to libs/curriculum before moving to monorepo 2021-10-03 11:52:24 +02:00
LICENSE Move curriculum project to libs/curriculum before moving to monorepo 2021-10-03 11:52:24 +02:00
README.md Move curriculum project to libs/curriculum before moving to monorepo 2021-10-03 11:52:24 +02:00
jest.config.js feat: add nx build system 2021-10-05 17:27:47 +02:00
package.json feat: add nx build system 2021-10-05 17:27:47 +02:00
test-setup.ts feat: add nx build system 2021-10-05 17:27:47 +02:00
tsconfig.json feat: add nx build system 2021-10-05 17:27:47 +02:00
tsconfig.lib.json feat: add nx build system 2021-10-05 17:27:47 +02:00
tsconfig.spec.json feat: add nx build system 2021-10-05 17:27:47 +02:00
yarn.lock Move curriculum project to libs/curriculum before moving to monorepo 2021-10-03 11:52:24 +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' }