skolplattformen-backup/libs/curriculum
Andreas Eriksson 8724fa46b7 fix: 🐛 Fix failing test in Curriculum 2022-04-24 11:00:34 +02:00
..
src fix: 🐛 Fix failing test in Curriculum 2022-04-24 11:00:34 +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 fix: lint and prettier fixes 2021-10-06 22:47:50 +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
project.json feat: 🎸 bump to RN 0.66 + upgrade dependencies (#521) 2021-12-16 08:22:20 +01: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 Fix tests for `hooks` 2021-10-15 22:36:48 +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' }