Merge remote-tracking branch 'curriculum-repo/main' into feature/monorepo
This commit is contained in:
commit
5ab1bbd8ec
|
@ -0,0 +1,17 @@
|
|||
module.exports = {
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: ['@typescript-eslint'],
|
||||
extends: [
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:prettier/recommended',
|
||||
'prettier',
|
||||
],
|
||||
parserOptions: {
|
||||
project: './tsconfig.eslint.json',
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/semi': [2, 'never'],
|
||||
},
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
name: Release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 14
|
||||
- name: Setup timezone
|
||||
uses: zcong1993/setup-timezone@master
|
||||
with:
|
||||
timezone: Europe/Stockholm
|
||||
- name: Install dependencies
|
||||
run: yarn install --immutable --silent --non-interactive 2> >(grep -v warning 1>&2)
|
||||
- name: Audit
|
||||
run: yarn audit
|
||||
- name: Build
|
||||
run: yarn build
|
||||
- name: Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: npx semantic-release
|
|
@ -0,0 +1,27 @@
|
|||
# This workflow will do a clean install of node dependencies and run tests
|
||||
|
||||
name: Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
unit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Node.js and run tests
|
||||
uses: actions/setup-node@v2.1.2
|
||||
with:
|
||||
node-version: 14.x
|
||||
|
||||
- name: Setup timezone
|
||||
uses: zcong1993/setup-timezone@master
|
||||
with:
|
||||
timezone: Europe/Stockholm
|
||||
|
||||
- run: yarn install --immutable --silent --non-interactive 2> >(grep -v warning 1>&2)
|
||||
- run: yarn audit
|
||||
- run: yarn lint
|
||||
- run: yarn test
|
|
@ -0,0 +1,106 @@
|
|||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# TypeScript v1 declaration files
|
||||
typings/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Microbundle cache
|
||||
.rpt2_cache/
|
||||
.rts2_cache_cjs/
|
||||
.rts2_cache_es/
|
||||
.rts2_cache_umd/
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
.env.test
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
|
||||
# Next.js build output
|
||||
.next
|
||||
|
||||
# Nuxt.js build / generate output
|
||||
.nuxt
|
||||
dist
|
||||
|
||||
# Gatsby files
|
||||
.cache/
|
||||
# Comment in the public line in if your project uses Gatsby and *not* Next.js
|
||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||
# public
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
|
||||
record
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"printWidth": 80,
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "es5",
|
||||
"bracketSpacing": true,
|
||||
"jsxBracketSameLine": false
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"branches": ["main"]
|
||||
}
|
|
@ -0,0 +1,201 @@
|
|||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
|
@ -0,0 +1,22 @@
|
|||
# curriculum
|
||||
|
||||
Translations of curriculum codes to clear text descriptions
|
||||
|
||||
## Installing
|
||||
|
||||
`npm i -S @skolplattformen/embedded-api` or `yarn add @skolplattformen/embedded-api`
|
||||
|
||||
## Calling
|
||||
|
||||
```javascript
|
||||
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' }
|
||||
```
|
|
@ -0,0 +1,4 @@
|
|||
module.exports = {
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node',
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"name": "@skolplattformen/curriculum",
|
||||
"version": "0.1.0",
|
||||
"description": "Swedish curriculum codes to plain text",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"dist/**/*"
|
||||
],
|
||||
"repository": "git@github.com:kolplattformen/curriculum.git",
|
||||
"author": "Johan Öbrink <johan.obrink@gmail.com>",
|
||||
"license": "Apache-2.0",
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"lint": "eslint 'src/*.ts' --quiet --fix",
|
||||
"test": "jest",
|
||||
"build": "tsc",
|
||||
"prepare": "yarn build",
|
||||
"publish-package": "npm publish --access public"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/eslint": "^7.2.9",
|
||||
"@types/jest": "^26.0.22",
|
||||
"@typescript-eslint/eslint-plugin": "^4.21.0",
|
||||
"@typescript-eslint/parser": "^4.21.0",
|
||||
"eslint": "^7.24.0",
|
||||
"eslint-config-prettier": "^8.1.0",
|
||||
"eslint-plugin-prettier": "^3.3.1",
|
||||
"jest": "^26.6.3",
|
||||
"prettier": "^2.2.1",
|
||||
"ts-jest": "^26.5.4",
|
||||
"typescript": "^4.2.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"deepmerge": "^4.2.2"
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,99 @@
|
|||
import translate, { Language, Translation } from './translations'
|
||||
|
||||
export interface Subject {
|
||||
code: string
|
||||
category: string
|
||||
name: string
|
||||
comment?: string
|
||||
}
|
||||
|
||||
type Parser = (translation: Translation, code: string) => Subject | null
|
||||
const parseSubject: Parser = ({ subjects }, code) => {
|
||||
if (!subjects[code]) return null
|
||||
|
||||
return {
|
||||
code,
|
||||
category: '',
|
||||
name: subjects[code] as string,
|
||||
}
|
||||
}
|
||||
|
||||
const parseTrainingSubject: Parser = (
|
||||
{ categories, traningsskolaSubjects },
|
||||
code
|
||||
) => {
|
||||
if (!traningsskolaSubjects[code]) return null
|
||||
|
||||
return {
|
||||
code,
|
||||
category: categories.trainingSchool,
|
||||
name: traningsskolaSubjects[code] as string,
|
||||
}
|
||||
}
|
||||
|
||||
const parseLanguage: Parser = ({ categories, languages }, code) => {
|
||||
if (!code.startsWith('M1') && !code.startsWith('M2')) return null
|
||||
const category = `${categories.modernLanguages}, ${
|
||||
code.startsWith('M1')
|
||||
? categories.modernLanguagesA1
|
||||
: categories.modernLanguagesA2
|
||||
}`
|
||||
const language = code.substr(2)
|
||||
|
||||
return {
|
||||
code,
|
||||
category,
|
||||
name: languages[language] || categories.unknown,
|
||||
}
|
||||
}
|
||||
|
||||
const parseAltLanguage: Parser = ({ categories, languages }, code) => {
|
||||
if (!code.startsWith('ASSV')) return null
|
||||
const language = code.substr(4)
|
||||
|
||||
return {
|
||||
code,
|
||||
category: categories.modernLanguagesAlt,
|
||||
name: languages[language] || categories.unknown,
|
||||
}
|
||||
}
|
||||
|
||||
const parseNativeLanguage: Parser = ({ categories, languages }, code) => {
|
||||
if (!code.startsWith('ML')) return null
|
||||
const language = code.substr(2)
|
||||
|
||||
return {
|
||||
code,
|
||||
category: categories.motherTounge,
|
||||
name: languages[language] || categories.unknown,
|
||||
}
|
||||
}
|
||||
|
||||
const parseMisc: Parser = ({ categories, misc }, code) => {
|
||||
if (!misc[code.toUpperCase()]) return null
|
||||
|
||||
return {
|
||||
code,
|
||||
category: categories.misc,
|
||||
name: misc[code.toUpperCase()] as string,
|
||||
}
|
||||
}
|
||||
|
||||
const parse = (code: string, lang: Language = 'sv'): Subject => {
|
||||
const translation = translate(lang)
|
||||
const [subjectCode, ...rest] = code.split(' ')
|
||||
const result: Subject = parseSubject(translation, subjectCode) ||
|
||||
parseTrainingSubject(translation, subjectCode) ||
|
||||
parseLanguage(translation, subjectCode) ||
|
||||
parseAltLanguage(translation, subjectCode) ||
|
||||
parseNativeLanguage(translation, subjectCode) ||
|
||||
parseMisc(translation, subjectCode) || {
|
||||
code: subjectCode,
|
||||
category: translation.categories.unknown,
|
||||
name: subjectCode,
|
||||
}
|
||||
if (rest.length) result.comment = rest.join(' ').trim()
|
||||
return result
|
||||
}
|
||||
|
||||
export default parse
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"subjects": {
|
||||
"TN": "Zeichensprache",
|
||||
"SVA": "Schewdishe als främdsprache",
|
||||
"SV": "Schwedish",
|
||||
"SL": "Handwerk",
|
||||
"SH": "Staatsbürgerkunde",
|
||||
"RE": "Religion",
|
||||
"HI": "Historie",
|
||||
"GE": "Geografie",
|
||||
"NO": "Naturwissenschaftlichen Themen",
|
||||
"SO": "Gesellschaftsorientierte Themen",
|
||||
"KE": "Chemie",
|
||||
"FY": "Physik",
|
||||
"BI": "Biologie",
|
||||
"MU": "Musik",
|
||||
"MA": "Mathematik",
|
||||
"IDH": "Sport und Gesundheit",
|
||||
"HKK": "Hauswirtschaft",
|
||||
"EN": "Englisch",
|
||||
"BL": "Kunst"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,225 @@
|
|||
{
|
||||
"subjects": {
|
||||
"BL": "Art",
|
||||
"EN": "English",
|
||||
"HKK": "Home and consumer studies",
|
||||
"IDH": "Physical education and health",
|
||||
"MA": "Mathematics",
|
||||
"MU": "Music",
|
||||
"NO": "Science studies",
|
||||
"BI": "Biology",
|
||||
"FY": "Physics",
|
||||
"KE": "Chemistry",
|
||||
"SO": "Social study subjects",
|
||||
"GE": "Geography",
|
||||
"HI": "History",
|
||||
"RE": "Religion",
|
||||
"SH": "Civics",
|
||||
"SL": "Crafts",
|
||||
"SV": "Swedish",
|
||||
"SVA": "Swedish as a second language",
|
||||
"TN": "Sign language",
|
||||
"TK": "Technology",
|
||||
"DA": "Preparatory dancing studies",
|
||||
"JU": "Jewish studies",
|
||||
"ES": "Aesthetics"
|
||||
},
|
||||
"traningsskolaSubjects": {
|
||||
"KOM": "Communication",
|
||||
"MOT": "Physical coordination",
|
||||
"VAA": "Everyday activities",
|
||||
"VEU": "Perception"
|
||||
},
|
||||
"specialLanguages": {
|
||||
"EN": "English",
|
||||
"FR": "French",
|
||||
"FI": "Finnish",
|
||||
"IT": "Italian",
|
||||
"JAP": "Japanese",
|
||||
"KI": "Chinese",
|
||||
"PO": "Portugese",
|
||||
"RY": "Russian",
|
||||
"SAM": "Sami",
|
||||
"SP": "Spanish",
|
||||
"SV": "Swedish",
|
||||
"SVA": "Swedish as a second language",
|
||||
"TN": "Sign language",
|
||||
"TY": "German"
|
||||
},
|
||||
"languages": {
|
||||
"ACE": "Acehnesic",
|
||||
"ACH": "Acoli",
|
||||
"AAR": "Afar, Danakil",
|
||||
"AFR": "Afrikaans",
|
||||
"AKA": "Akan, Asante, Fante",
|
||||
"SQI": "Albanian",
|
||||
"AMH": "Amharic",
|
||||
"ARA": "Arabic",
|
||||
"HYE": "Armenic",
|
||||
"AII": "Assyric, New arameic",
|
||||
"AYM": "Aymara",
|
||||
"AZE": "Azerbaijani",
|
||||
"BAL": "Baluchi, Baloci, Baluci, Makrani",
|
||||
"BAM": "Bambara",
|
||||
"BAI": "Bamileke",
|
||||
"EUS": "Baskiska",
|
||||
"BEM": "Bemba, Chibemba, Chiwemba, Ichibemba, Wemba",
|
||||
"BEN": "Bengali",
|
||||
"BER": "Berber",
|
||||
"BIL": "Bile",
|
||||
"BYN": "Bilen, Bilein, Bileno, Bilin",
|
||||
"BOS": "Bosnian",
|
||||
"BUL": "Bulgarian",
|
||||
"MYA": "Burmese",
|
||||
"CEB": "Cebuan, Binisaya, Sebuano, Sugbuanon, Sugbuhanon, Visayan",
|
||||
"DAN": "Danish",
|
||||
"DAR": "Dargin, Dargi, Dargin, Dargintsy, Khiurkilinskii, Uslar",
|
||||
"PRS": "Dari, Parsi, Persian",
|
||||
"DMQ": "Dimli",
|
||||
"DIV": "Divehi",
|
||||
"ENG": "Engelish",
|
||||
"EST": "Estonian",
|
||||
"EWE": "Ewe",
|
||||
"FIJ": "Fijian",
|
||||
"FIN": "Finnish",
|
||||
"VLS": "Flemish",
|
||||
"FRA": "French",
|
||||
"FAO": "Faroese",
|
||||
"GAA": "Ga",
|
||||
"KAT": "Georgian",
|
||||
"GRE": "Greek",
|
||||
"KAL": "Greenlandic",
|
||||
"GUJ": "Gujarati",
|
||||
"HEB": "Hebrew",
|
||||
"HIN": "Hindi",
|
||||
"IBO": "Ibo",
|
||||
"IND": "Indonesian",
|
||||
"ISL": "Icelandic",
|
||||
"ITA": "Italian",
|
||||
"JPN": "Japanese",
|
||||
"YID": "Yiddish",
|
||||
"KAM": "Kamba, Kekamba, Kikamba",
|
||||
"KHM": "Khmer",
|
||||
"KAN": "Kannada",
|
||||
"KAR": "Karen",
|
||||
"CAT": "Catalan",
|
||||
"KAZ": "Kazakh",
|
||||
"KIK": "Kikuyu",
|
||||
"ZHO": "Chinese",
|
||||
"CMN": "Chinese, Mandarin",
|
||||
"HAK": "Chinese, Hakka",
|
||||
"YUE": "Chinese, Cantonese",
|
||||
"NAN": "Chinese, Min Nan",
|
||||
"KIN": "Kinyarwanda",
|
||||
"KIR": "Kyrgyz",
|
||||
"RUN": "Kirundi",
|
||||
"KON": "Kongo",
|
||||
"KOR": "Korean",
|
||||
"ROP": "Creole",
|
||||
"HRV": "Croatian",
|
||||
"KRO": "Kru",
|
||||
"KUR": "Kurdish",
|
||||
"CKB": "Kurdish, centr.",
|
||||
"KMR": "Kurdish, north",
|
||||
"SDH": "Kurdish, south",
|
||||
"LAO": "Laotian",
|
||||
"LAV": "Latvian",
|
||||
"LMA": "Limba",
|
||||
"LIN": "Lingala",
|
||||
"LIT": "Lithuanian",
|
||||
"LUG": "Luganda/Ganda",
|
||||
"LUO": "Luo",
|
||||
"MKD": "Macedonian",
|
||||
"MLG": "Malagaskiska",
|
||||
"MSA": "Malagasy",
|
||||
"MAL": "Malayalami",
|
||||
"MLT": "Maltese",
|
||||
"MNK": "Mandinka",
|
||||
"MRI": "Maori",
|
||||
"MAR": "Marathi",
|
||||
"MYX": "Masaaba, Gisu, Gugisu, Lumasaaba, Masaba",
|
||||
"FIT": "Meänkieli",
|
||||
"MON": "Mongolian",
|
||||
"NLD": "Dutch",
|
||||
"NEP": "Nepalese",
|
||||
"NOR": "Norwegian",
|
||||
"NYA": "Nyanja",
|
||||
"ORM": "Oromo",
|
||||
"PUS": "Pashto",
|
||||
"PTN": "Patani",
|
||||
"FAS": "Persian",
|
||||
"POL": "Polish",
|
||||
"POR": "Portuguese",
|
||||
"PAN": "Punjabi",
|
||||
"ROM": "Romani",
|
||||
"RMC": "Romani, Carpathians",
|
||||
"RML": "Romani, Baltic",
|
||||
"RMN": "Romani, Arli",
|
||||
"RMF": "Romani, Kalé",
|
||||
"RMO": "Romani, Sinti",
|
||||
"RMU": "Romani, Tavringer",
|
||||
"RMY": "Romani, Lovari, Kalderari",
|
||||
"RON": "Romanian",
|
||||
"RUS": "Russian",
|
||||
"SSY": "Saho",
|
||||
"NSM": "Sami, (northern)",
|
||||
"SMI": "Sami",
|
||||
"SMJ": "Sami, Lule Sami",
|
||||
"SJE": "Sami, Pite Sami",
|
||||
"SMA": "Sami, Syd Sami",
|
||||
"SJU": "Sami, Ume Sami",
|
||||
"SMO": "Samoan",
|
||||
"SRP": "Serbian",
|
||||
"HBS": "Serbo-Croatian",
|
||||
"SOT": "Sesotho, Sisutho, Souto, Suthu, Suto",
|
||||
"SNA": "Shona",
|
||||
"SIN": "Sinhalese",
|
||||
"SLK": "Slovak",
|
||||
"SLV": "Slovenian",
|
||||
"SOM": "Somali",
|
||||
"SPA": "Spanish",
|
||||
"SWA": "Swahili",
|
||||
"SYC": "Syrian/Assyrian, suryaya, suryoyo",
|
||||
"SYR": "Syrian",
|
||||
"TRU": "Syrian, Turoyo",
|
||||
"TLG": "Tagalog",
|
||||
"TAM": "Tamil",
|
||||
"TAT": "Tatar",
|
||||
"TEL": "Telugu",
|
||||
"THA": "Thai",
|
||||
"TIB": "Tibetan",
|
||||
"TIG": "Tigre",
|
||||
"TIR": "Tigrinya",
|
||||
"CES": "Czech",
|
||||
"TON": "Tongan",
|
||||
"TSN": "Tswana, Setswana",
|
||||
"TUR": "Turkish",
|
||||
"DEU": "German",
|
||||
"UIG": "Uighur",
|
||||
"UKR": "Ukrainian",
|
||||
"HUN": "Hungarian",
|
||||
"URD": "Urdu",
|
||||
"UZB": "Uzbek",
|
||||
"VIE": "Vietnamese",
|
||||
"WOL": "Wolof",
|
||||
"YOR": "Yoruba, Yariba, Yooba",
|
||||
"ZUL": "Zulu",
|
||||
"SPK": "Other language"
|
||||
},
|
||||
"categories": {
|
||||
"trainingSchool": "Compulsory school for children with severe learning disabilities",
|
||||
"modernLanguages": "Modern languages",
|
||||
"modernLanguagesA1": "CEFR min. A1+",
|
||||
"modernLanguagesA2": "CEFR min. A2",
|
||||
"modernLanguagesAlt": "Alt modern language, CEFR min. A2",
|
||||
"motherTounge": "Mother tongue tuition",
|
||||
"unknown": "Unknown",
|
||||
"misc": "Miscellaneous"
|
||||
},
|
||||
"misc": {
|
||||
"LUNCH": "Lunch",
|
||||
"PRANDIUM": "Lunch",
|
||||
"MTID": "Mentor time",
|
||||
"RAST": "Break"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"specialLanguages": {
|
||||
"SV": "Sueco",
|
||||
"SP": "Español",
|
||||
"SAM": "Sami",
|
||||
"RY": "Ruso",
|
||||
"PO": "Portugués",
|
||||
"KI": "Chino",
|
||||
"JAP": "Japonés",
|
||||
"IT": "Italiano",
|
||||
"FI": "Finlandés",
|
||||
"FR": "Francés",
|
||||
"EN": "Inglés"
|
||||
},
|
||||
"traningsskolaSubjects": {
|
||||
"VAA": "Actividades cotidianas",
|
||||
"KOM": "Comunicación"
|
||||
},
|
||||
"subjects": {
|
||||
"ES": "Estética",
|
||||
"DA": "Estudios preparatorios de baile",
|
||||
"TK": "Tecnología",
|
||||
"TN": "Lenguaje de signos",
|
||||
"SVA": "Sueco como segunda lengua",
|
||||
"SV": "Sueco",
|
||||
"SL": "Artesanía",
|
||||
"SH": "Educación cívica",
|
||||
"RE": "Religión",
|
||||
"HI": "Historia",
|
||||
"GE": "Geografía",
|
||||
"KE": "Química",
|
||||
"FY": "Física",
|
||||
"BI": "Biología",
|
||||
"NO": "Ciencias Naturales",
|
||||
"MU": "Música",
|
||||
"MA": "Matemáticas",
|
||||
"IDH": "Salud y educación física",
|
||||
"HKK": "Estudios sobre el hogar y el consumidor",
|
||||
"EN": "inglés"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
"languages": {
|
||||
"VIE": "Vietnamien",
|
||||
"UZB": "Ouzbek",
|
||||
"URD": "Ourdou",
|
||||
"HUN": "Hongrois",
|
||||
"UKR": "Ukrainien",
|
||||
"UIG": "Ouïghour",
|
||||
"ZUL": "Zoulou",
|
||||
"YOR": "Yorouba",
|
||||
"WOL": "Wolof",
|
||||
"SPK": "Autre langue",
|
||||
"SQI": "Albanais"
|
||||
},
|
||||
"categories": {
|
||||
"trainingSchool": "École obligatoire pour les enfants souffrant de graves difficultés d'apprentissage",
|
||||
"motherTounge": "Cours de langue maternelle",
|
||||
"modernLanguagesAlt": "Langue moderne Alt, CECR min. A2",
|
||||
"modernLanguagesA2": "CECR min. A2",
|
||||
"modernLanguagesA1": "CECR min. A1+",
|
||||
"modernLanguages": "Langues modernes",
|
||||
"misc": "Divers",
|
||||
"unknown": "Inconnu"
|
||||
},
|
||||
"misc": {
|
||||
"RAST": "Pause",
|
||||
"MTID": "Tutorat",
|
||||
"PRANDIUM": "Déjeuner",
|
||||
"LUNCH": "Déjeuner"
|
||||
},
|
||||
"specialLanguages": {
|
||||
"TY": "Allemand",
|
||||
"TN": "Langue des signes",
|
||||
"SVA": "Suédois comme deuxième langue",
|
||||
"SV": "Suédois",
|
||||
"SP": "Espagnol",
|
||||
"SAM": "Same",
|
||||
"RY": "Russe",
|
||||
"PO": "Portugais",
|
||||
"KI": "Chinois",
|
||||
"JAP": "Japonais",
|
||||
"IT": "Italien",
|
||||
"FI": "Finnois",
|
||||
"FR": "Français",
|
||||
"EN": "Anglais"
|
||||
},
|
||||
"traningsskolaSubjects": {
|
||||
"VEU": "Perception",
|
||||
"VAA": "Activités quotidiennes",
|
||||
"MOT": "Coordination physique",
|
||||
"KOM": "Communication"
|
||||
},
|
||||
"subjects": {
|
||||
"ES": "Esthétique",
|
||||
"JU": "Études juives",
|
||||
"DA": "Études préparatoires de danse",
|
||||
"TK": "Technologie",
|
||||
"TN": "Langue des signes",
|
||||
"SVA": "Suédois comme deuxième langue",
|
||||
"SV": "Suédois",
|
||||
"SL": "Travaux manuels",
|
||||
"SH": "Éducation civique",
|
||||
"RE": "Religion",
|
||||
"HI": "Histoire",
|
||||
"GE": "Géographie",
|
||||
"SO": "Sujets d'étude sociale",
|
||||
"KE": "Chimie",
|
||||
"FY": "Physique",
|
||||
"BI": "Biologie",
|
||||
"NO": "Études scientifiques",
|
||||
"MU": "Musique",
|
||||
"MA": "Mathématiques",
|
||||
"IDH": "Éducation physique et santé",
|
||||
"HKK": "Études économiques et domestiques",
|
||||
"EN": "Anglais",
|
||||
"BL": "Art"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
import merge from 'deepmerge'
|
||||
|
||||
type Repo = Record<string, string>
|
||||
export interface Translation {
|
||||
subjects: Repo
|
||||
traningsskolaSubjects: Repo
|
||||
languages: Repo
|
||||
categories: Repo
|
||||
misc: Repo
|
||||
}
|
||||
interface RawTranslation extends Translation {
|
||||
specialLanguages: Repo
|
||||
}
|
||||
|
||||
const translations: Translations = {
|
||||
sv: require('./sv.json'),
|
||||
de: require('./de.json'),
|
||||
en: require('./en.json'),
|
||||
es: require('./es.json'),
|
||||
fr: require('./fr.json'),
|
||||
it: require('./it.json'),
|
||||
la: require('./la.json'),
|
||||
nb_NO: require('./nb_NO.json'),
|
||||
pl: require('./pl.json'),
|
||||
}
|
||||
const languageList: string[] = Object.keys(translations)
|
||||
export type Language = typeof languageList[number]
|
||||
type Translations = Record<Language, RawTranslation>
|
||||
|
||||
const translate = (lang: Language): Translation => {
|
||||
const selectedLanguage = languageList.includes(lang) ? lang : languageList[0]
|
||||
const {
|
||||
subjects,
|
||||
traningsskolaSubjects,
|
||||
specialLanguages,
|
||||
languages,
|
||||
categories,
|
||||
misc,
|
||||
} = merge(translations.sv, translations[selectedLanguage])
|
||||
|
||||
return {
|
||||
subjects,
|
||||
traningsskolaSubjects,
|
||||
categories,
|
||||
misc,
|
||||
languages: {
|
||||
...specialLanguages,
|
||||
...languages,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export default translate
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"misc": {
|
||||
"PRANDIUM": "Pranzo",
|
||||
"LUNCH": "Pranzo"
|
||||
},
|
||||
"categories": {
|
||||
"unknown": "Sconosciuta",
|
||||
"motherTounge": "Madre lingua"
|
||||
},
|
||||
"languages": {
|
||||
"ITA": "Italiano",
|
||||
"FRA": "Francese",
|
||||
"TUR": "Turco",
|
||||
"SPA": "Spagnolo",
|
||||
"RUS": "Russo",
|
||||
"POR": "Portogese",
|
||||
"NOR": "Norvegese",
|
||||
"KOR": "Coreano",
|
||||
"ZHO": "Cinese",
|
||||
"JPN": "Giapponese",
|
||||
"ENG": "Inglese",
|
||||
"DAN": "Danese",
|
||||
"FIN": "Finlandese"
|
||||
},
|
||||
"specialLanguages": {
|
||||
"SVA": "Svedese come secondo lingua",
|
||||
"SV": "Svedese",
|
||||
"SP": "Spangnolo",
|
||||
"IT": "Italiano",
|
||||
"FR": "Francese",
|
||||
"EN": "Inglese"
|
||||
},
|
||||
"subjects": {
|
||||
"TK": "Tecnologia",
|
||||
"SVA": "Svedese come seconda lingua",
|
||||
"SV": "Svedese",
|
||||
"RE": "Religione",
|
||||
"HI": "Storia",
|
||||
"GE": "Geografia",
|
||||
"KE": "Chimica",
|
||||
"FY": "Fisica",
|
||||
"BI": "Biologia",
|
||||
"NO": "Scienze",
|
||||
"MU": "Musica",
|
||||
"MA": "Matematica",
|
||||
"IDH": "Ed. fisica",
|
||||
"HKK": "Cuchina",
|
||||
"EN": "Inglese",
|
||||
"BL": "Artistica"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
"languages": {
|
||||
"AZE": "Lingua atropatenica",
|
||||
"AYM": "Lingua aymara",
|
||||
"AII": "Lingua Assyriae",
|
||||
"HYE": "Lingua armeniaca",
|
||||
"ARA": "Lingua arabica",
|
||||
"AMH": "Lingua amharica",
|
||||
"SQI": "Lingua albanica",
|
||||
"AKA": "Lingua acanica",
|
||||
"AFR": "Lingua batava capitensis",
|
||||
"AAR": "Lingua afarica",
|
||||
"ACH": "Lingua acholica",
|
||||
"ACE": "Lingua acehnesiana"
|
||||
},
|
||||
"specialLanguages": {
|
||||
"TY": "Lingua germanica",
|
||||
"TN": "Lingua gesticulationum",
|
||||
"SVA": "Lingua suecica extranea",
|
||||
"SV": "Lingua suecica",
|
||||
"SP": "Lingua hispanica",
|
||||
"SAM": "Lingua samica",
|
||||
"RY": "Lingua russica",
|
||||
"PO": "Lingua lusitanica",
|
||||
"KI": "Lingua sinica",
|
||||
"JAP": "Lingua iaponica",
|
||||
"IT": "Lingua italica",
|
||||
"FI": "Lingua finnica",
|
||||
"FR": "Lingua francogallica",
|
||||
"EN": "Lingua anglica"
|
||||
},
|
||||
"traningsskolaSubjects": {
|
||||
"VEU": "Perceptio",
|
||||
"VAA": "Actiones vulgares",
|
||||
"MOT": "Coordinatio corporalis",
|
||||
"KOM": "Communicatio"
|
||||
},
|
||||
"subjects": {
|
||||
"ES": "Opera formosa",
|
||||
"JU": "Studia iudaea",
|
||||
"DA": "Studia praeparatoria saltatoria",
|
||||
"TK": "Technologia",
|
||||
"TN": "Lingua gesticulationum",
|
||||
"SVA": "Lingua suecica extranea",
|
||||
"SV": "Lingua suecica",
|
||||
"SL": "Artes practicae",
|
||||
"SH": "Scientia civilis",
|
||||
"RE": "Scientia religiosa",
|
||||
"HI": "Historia",
|
||||
"GE": "Geographia",
|
||||
"SO": "Scientiae rei publicae",
|
||||
"KE": "Chemia",
|
||||
"FY": "Physica",
|
||||
"BI": "Biologia",
|
||||
"HKK": "Scientia domi emptorisque",
|
||||
"NO": "Scientia naturalis",
|
||||
"MU": "Musica",
|
||||
"MA": "Mathematica",
|
||||
"IDH": "Exercitium sanitasque",
|
||||
"EN": "Lingua anglica",
|
||||
"BL": "Ars"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
{
|
||||
"languages": {
|
||||
"POR": "Portugisisk",
|
||||
"POL": "Polsk",
|
||||
"JPN": "Japansk",
|
||||
"ITA": "Italiensk",
|
||||
"ISL": "Islandsk",
|
||||
"IND": "Indonesisk",
|
||||
"SPK": "Annet språk",
|
||||
"FRA": "Fransk",
|
||||
"DEU": "Tysk"
|
||||
},
|
||||
"traningsskolaSubjects": {
|
||||
"VAA": "Hverdagsaktiviteter",
|
||||
"KOM": "Kommunikasjon",
|
||||
"VEU": "Virkelighetsoppfatning",
|
||||
"MOT": "Motorikk"
|
||||
},
|
||||
"subjects": {
|
||||
"ES": "Estetisk virksomhet",
|
||||
"NO": "Naturfag",
|
||||
"HKK": "Heimkunnskap",
|
||||
"JU": "Jødiske studier",
|
||||
"SO": "Samfunnsfag",
|
||||
"SH": "Samfunnslære",
|
||||
"KE": "Kjemi",
|
||||
"IDH": "Idrett og helse",
|
||||
"SL": "Sløyd",
|
||||
"DA": "Forberedende dansestudie",
|
||||
"TK": "Teknologi",
|
||||
"TN": "Tegnspråk",
|
||||
"SVA": "Svensk som andrespråk",
|
||||
"SV": "Svensk",
|
||||
"RE": "Religion",
|
||||
"HI": "Historie",
|
||||
"GE": "Geografi",
|
||||
"FY": "Fysikk",
|
||||
"BI": "Biologi",
|
||||
"MU": "Musikk",
|
||||
"MA": "Matematikk",
|
||||
"EN": "Engelsk",
|
||||
"BL": "Kunst"
|
||||
},
|
||||
"misc": {
|
||||
"PRANDIUM": "Lunsj",
|
||||
"LUNCH": "Lunsj",
|
||||
"RAST": "Pause",
|
||||
"MTID": "Mentortid"
|
||||
},
|
||||
"categories": {
|
||||
"misc": "Ymse",
|
||||
"unknown": "Ukjent",
|
||||
"modernLanguages": "Moderne språk",
|
||||
"motherTounge": "Morsmålsopplæring",
|
||||
"modernLanguagesAlt": "Alt moderne språk, språkvalg",
|
||||
"modernLanguagesA2": "Språkvalg",
|
||||
"modernLanguagesA1": "Elevens valg",
|
||||
"trainingSchool": "Grunnskole for elever med lærevansker"
|
||||
},
|
||||
"specialLanguages": {
|
||||
"TY": "Tysk",
|
||||
"TN": "Tegnspråk",
|
||||
"SVA": "Svensk som andrespråk",
|
||||
"SV": "Svensk",
|
||||
"SP": "Spansk",
|
||||
"SAM": "Samisk",
|
||||
"RY": "Russisk",
|
||||
"PO": "Portugisisk",
|
||||
"KI": "Kinesisk",
|
||||
"JAP": "Japansk",
|
||||
"IT": "Italiensk",
|
||||
"FI": "Finsk",
|
||||
"FR": "Fransk",
|
||||
"EN": "Engelsk"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,225 @@
|
|||
{
|
||||
"languages": {
|
||||
"MAL": "Malayalami",
|
||||
"MSA": "Język malgaski",
|
||||
"MKD": "Język macedoński",
|
||||
"LUO": "Luo",
|
||||
"LUG": "Luganda/Ganda",
|
||||
"LIT": "Język litewski",
|
||||
"LIN": "Język lingala",
|
||||
"LMA": "Limba",
|
||||
"LAV": "Język łotewski",
|
||||
"LAO": "Język laotański",
|
||||
"SDH": "Kurdyjski, południowy",
|
||||
"KMR": "Kurdyjski, północny",
|
||||
"CKB": "Kurdyjski, centrowy.",
|
||||
"KUR": "Język kurdyjski",
|
||||
"HRV": "Język chorwacki",
|
||||
"ROP": "Kreolski",
|
||||
"KOR": "Język koreański",
|
||||
"KIR": "Język kirgiski",
|
||||
"NAN": "Chiński, Min Nan",
|
||||
"YUE": "Chiński, kantoński",
|
||||
"HAK": "Chiński, hakka",
|
||||
"CMN": "Język chiński, mandaryński",
|
||||
"ZHO": "Język chiński",
|
||||
"KAZ": "Język kazachski",
|
||||
"CAT": "Język kataloński",
|
||||
"KAR": "Język kareński",
|
||||
"KAN": "Język kannada",
|
||||
"KHM": "Język khmerski",
|
||||
"YID": "Język jidisz",
|
||||
"JPN": "Język japoński",
|
||||
"ITA": "Język włoski",
|
||||
"ISL": "Język islandzki",
|
||||
"IND": "Język indonezyjski",
|
||||
"HIN": "Język hindi",
|
||||
"HEB": "Język hebrajski",
|
||||
"GUJ": "Język gujarati",
|
||||
"KAL": "Język grenlandzki",
|
||||
"GRE": "Język grecki",
|
||||
"KAT": "Język gruziński",
|
||||
"GAA": "Język ga",
|
||||
"FAO": "Język farerski",
|
||||
"FRA": "Język francuski",
|
||||
"VLS": "Język flamandzki",
|
||||
"FIN": "Język fiński",
|
||||
"FIJ": "Język fidżyjski",
|
||||
"EST": "Język estoński",
|
||||
"ENG": "Język angielski",
|
||||
"PRS": "Dari, Parsi, perski",
|
||||
"DAN": "Język duński",
|
||||
"MYA": "Język birmański",
|
||||
"TIG": "Język tigre",
|
||||
"TIB": "Język tybetański",
|
||||
"THA": "Język tajski",
|
||||
"TEL": "Język telugu",
|
||||
"TAT": "Język tatarski",
|
||||
"TAM": "Język tamilski",
|
||||
"TLG": "Język tagalski",
|
||||
"TRU": "Syryjski, Turoyo",
|
||||
"SYR": "Język syryjski",
|
||||
"SYC": "Syryjski/Asyryjski, suryaya, suryoyo",
|
||||
"SWA": "Język suahili",
|
||||
"SPA": "Język hiszpański",
|
||||
"SOM": "Język somalijski",
|
||||
"SLV": "Język słoweński",
|
||||
"SLK": "Język słowacki",
|
||||
"SIN": "Język cejloński",
|
||||
"SNA": "Shona",
|
||||
"SOT": "Sesotho, Sisutho, Souto, Suthu, Suto",
|
||||
"HBS": "Język serbsko-chorwacki",
|
||||
"SRP": "Język serbski",
|
||||
"SMO": "Język samoański",
|
||||
"SJU": "Język ume",
|
||||
"SMA": "Język południowosaamski",
|
||||
"SJE": "Język saamski pite",
|
||||
"SMJ": "Język lule",
|
||||
"SMI": "Język saamski",
|
||||
"NSM": "Język północnosaamski",
|
||||
"SSY": "Język saho",
|
||||
"RUS": "Język rosyjski",
|
||||
"RON": "Język rumuński",
|
||||
"RMY": "Romani, Lovari, Kalderari",
|
||||
"RMU": "Romani, Tavringer",
|
||||
"RMO": "Romani, Sinti",
|
||||
"RMF": "Romani, Kalé",
|
||||
"RMN": "Romani, Arli",
|
||||
"RML": "Romani, Baltic",
|
||||
"RMC": "Romani, Karpaty",
|
||||
"ROM": "Romani",
|
||||
"PAN": "Język pendżabski",
|
||||
"POR": "Język portugalski",
|
||||
"POL": "Język polski",
|
||||
"FAS": "Język perski",
|
||||
"PTN": "Patani",
|
||||
"PUS": "Język paszto",
|
||||
"ORM": "Język oromo",
|
||||
"NYA": "Język nyanja",
|
||||
"NOR": "Język norweski",
|
||||
"NEP": "Język nepalski",
|
||||
"NLD": "Język holenderski",
|
||||
"MON": "Język mongolski",
|
||||
"FIT": "Meänkieli",
|
||||
"MYX": "Masaaba, Gisu, Gugisu, Lumasaaba, Masaba",
|
||||
"MAR": "Marathi",
|
||||
"MRI": "Język maoryjski",
|
||||
"MNK": "Język mandinka",
|
||||
"MLT": "Język maltański",
|
||||
"BUL": "Język bułgarski",
|
||||
"BOS": "Język bośniacki",
|
||||
"BER": "Język berberyjski",
|
||||
"BEN": "Język bengalski",
|
||||
"BAM": "Język bambara",
|
||||
"AZE": "Język azerski",
|
||||
"ARA": "Język arabski",
|
||||
"AMH": "Język amharski",
|
||||
"SQI": "Język albański",
|
||||
"AFR": "Język afrikaans",
|
||||
"ACH": "Język akoli",
|
||||
"YOR": "Yoruba, Yariba, Yooba",
|
||||
"TSN": "Tswana, Setswana",
|
||||
"TON": "Język tongan",
|
||||
"DAR": "Darginska, Dargi, Dargin, Dargintsy, Khiurkilinskii, Uslar",
|
||||
"AYM": "Ajmarski",
|
||||
"MLG": "Malagaskiska",
|
||||
"KRO": "Kru",
|
||||
"KON": "Kongo",
|
||||
"RUN": "Kirundi",
|
||||
"KIN": "Kinyarwanda",
|
||||
"KIK": "Kikuyu",
|
||||
"KAM": "Kamba, Kekamba, Kikamba",
|
||||
"IBO": "Ibo",
|
||||
"EWE": "Ewe",
|
||||
"DIV": "Divehi",
|
||||
"DMQ": "Dimli",
|
||||
"CEB": "Cebuanska, Binisaya, Sebuano, Sugbuanon, Sugbuhanon, Visayan",
|
||||
"BYN": "Bilen, Bilein, Bileno, Bilin",
|
||||
"BIL": "Bile",
|
||||
"BEM": "Bemba, Chibemba, Chiwemba, Ichibemba, Wemba",
|
||||
"EUS": "Język baskijski",
|
||||
"BAI": "Język bamileke",
|
||||
"BAL": "Baluchi, Baloci, Baluci, Makrani",
|
||||
"AII": "Assyriska, Nyarameiska",
|
||||
"HYE": "Język ormiański",
|
||||
"AKA": "Akan, Asante, Fante",
|
||||
"AAR": "Afar, Danakil",
|
||||
"ACE": "Acehnesiska",
|
||||
"SPK": "Inne języki",
|
||||
"ZUL": "Język zulu",
|
||||
"WOL": "Język wolof",
|
||||
"VIE": "Język wietnamski",
|
||||
"UZB": "Język uzbecki",
|
||||
"URD": "Język urdu",
|
||||
"HUN": "Język węgierski",
|
||||
"UKR": "Język ukraiński",
|
||||
"UIG": "Język ujgurski",
|
||||
"DEU": "Język niemiecki",
|
||||
"TUR": "Język turecki",
|
||||
"CES": "Język czeski",
|
||||
"TIR": "Język tigrinia"
|
||||
},
|
||||
"specialLanguages": {
|
||||
"TY": "Język niemiecki",
|
||||
"TN": "Język migowy",
|
||||
"SVA": "Szwedzki jako drugi język",
|
||||
"SV": "Język szwedzki",
|
||||
"SP": "Język hiszpański",
|
||||
"SAM": "Język saamski",
|
||||
"RY": "Język rosyjski",
|
||||
"PO": "Język portugalski",
|
||||
"KI": "Język chiński",
|
||||
"JAP": "Język japoński",
|
||||
"IT": "Język włoski",
|
||||
"FI": "Język fiński",
|
||||
"FR": "Język francuski",
|
||||
"EN": "Język angielski"
|
||||
},
|
||||
"traningsskolaSubjects": {
|
||||
"MOT": "Motoryka",
|
||||
"KOM": "Komunikacja",
|
||||
"VAA": "Codzienne czynności",
|
||||
"VEU": "Postrzeganie rzeczywistości"
|
||||
},
|
||||
"subjects": {
|
||||
"TK": "Technika",
|
||||
"TN": "Język migowy",
|
||||
"SVA": "Szwedzki jako drugi język",
|
||||
"SV": "Język szwedzki",
|
||||
"RE": "Religioznawstwo",
|
||||
"HI": "Historia",
|
||||
"GE": "Geografia",
|
||||
"KE": "Chemia",
|
||||
"FY": "Fizyka",
|
||||
"BI": "Biologia",
|
||||
"MU": "Muzyka",
|
||||
"MA": "Matematyka",
|
||||
"IDH": "Wychowanie fizyczne",
|
||||
"EN": "Język angielski",
|
||||
"BL": "Zajęcia plastyczne",
|
||||
"ES": "Estetyka",
|
||||
"DA": "Przygotowawcze studia taneczne",
|
||||
"SL": "Rzemieślnictwo",
|
||||
"SH": "Wiedza o społeczeństwie",
|
||||
"SO": "Przedmioty społeczne",
|
||||
"NO": "Nauki ścisłe",
|
||||
"HKK": "Wiedza o domu i konsumentach",
|
||||
"JU": "Studia żydowskie"
|
||||
},
|
||||
"categories": {
|
||||
"trainingSchool": "Szkoła obowiązkowa dla dzieci ze znacznymi trudnościami w nauce",
|
||||
"misc": "Różne",
|
||||
"unknown": "Nieznany",
|
||||
"motherTounge": "Język ojczysty",
|
||||
"modernLanguagesAlt": "Alternatywny język nowożytny, CEFR min. A2",
|
||||
"modernLanguagesA2": "språkval",
|
||||
"modernLanguagesA1": "elevens val",
|
||||
"modernLanguages": "Języki nowożytne"
|
||||
},
|
||||
"misc": {
|
||||
"LUNCH": "Lunch",
|
||||
"MTID": "Czas z mentorem",
|
||||
"PRANDIUM": "Lunch",
|
||||
"RAST": "Przerwa"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,225 @@
|
|||
{
|
||||
"subjects": {
|
||||
"BL": "Bild",
|
||||
"EN": "Engelska",
|
||||
"HKK": "Hem & Konsumentkunskap",
|
||||
"IDH": "Idrott & Hälsa",
|
||||
"MA": "Matematik",
|
||||
"MU": "Musik",
|
||||
"NO": "Naturorienterande ämnen",
|
||||
"BI": "Biologi",
|
||||
"FY": "Fysik",
|
||||
"KE": "Kemi",
|
||||
"SO": "Samhällsorienterande ämnen",
|
||||
"GE": "Geografi",
|
||||
"HI": "Historia",
|
||||
"RE": "Religionskunskap",
|
||||
"SH": "Samhällskunskap",
|
||||
"SL": "Slöjd",
|
||||
"SV": "Svenska",
|
||||
"SVA": "Svenska som andraspråk",
|
||||
"TN": "Teckenspråk",
|
||||
"TK": "Teknik",
|
||||
"DA": "Förberedande dansarutbildning",
|
||||
"JU": "Judiska studier",
|
||||
"ES": "Estetisk verksamhet"
|
||||
},
|
||||
"traningsskolaSubjects": {
|
||||
"KOM": "Kommunikation",
|
||||
"MOT": "Motorik",
|
||||
"VAA": "Vardagsaktiviteter",
|
||||
"VEU": "Verklighetsuppfattning"
|
||||
},
|
||||
"specialLanguages": {
|
||||
"EN": "Engelska",
|
||||
"FR": "Franska",
|
||||
"FI": "Finska",
|
||||
"IT": "Italienska",
|
||||
"JAP": "Japanska",
|
||||
"KI": "Kinesiska",
|
||||
"PO": "Portugisiska",
|
||||
"RY": "Ryska",
|
||||
"SAM": "Samiska",
|
||||
"SP": "Spanska",
|
||||
"SV": "Svenska",
|
||||
"SVA": "Svenska som andraspråk",
|
||||
"TN": "Teckenspråk",
|
||||
"TY": "Tyska"
|
||||
},
|
||||
"languages": {
|
||||
"ACE": "Acehnesiska",
|
||||
"ACH": "Acoli",
|
||||
"AAR": "Afar, Danakil",
|
||||
"AFR": "Afrikaans",
|
||||
"AKA": "Akan",
|
||||
"SQI": "Albanska",
|
||||
"AMH": "Amhariska",
|
||||
"ARA": "Arabiska",
|
||||
"HYE": "Armeniska",
|
||||
"AII": "Assyriska, Nyarameiska",
|
||||
"AYM": "Aymara",
|
||||
"AZE": "Azerbadjanska",
|
||||
"BAL": "Baluchiska",
|
||||
"BAM": "Bambara",
|
||||
"BAI": "Bamileke",
|
||||
"EUS": "Baskiska",
|
||||
"BEM": "Bemba",
|
||||
"BEN": "Bengaliska",
|
||||
"BER": "Berbiska",
|
||||
"BIL": "Bile",
|
||||
"BYN": "Bilen, Bilein, Bileno, Bilin",
|
||||
"BOS": "Bosniska",
|
||||
"BUL": "Bulgariska",
|
||||
"MYA": "Burmesiska",
|
||||
"CEB": "Cebuanska, Binisaya, Sebuano, Sugbuanon, Sugbuhanon, Visayan",
|
||||
"DAN": "Danska",
|
||||
"DAR": "Darginska, Dargi, Dargin, Dargintsy, Khiurkilinskii, Uslar",
|
||||
"PRS": "Dari, Parsi, Persian",
|
||||
"DMQ": "Dimli",
|
||||
"DIV": "Divehi",
|
||||
"ENG": "Engelska",
|
||||
"EST": "Estniska",
|
||||
"EWE": "Ewe",
|
||||
"FIJ": "Fijianska",
|
||||
"FIN": "Finska",
|
||||
"VLS": "Flamländska",
|
||||
"FRA": "Franska",
|
||||
"FAO": "Färöiska",
|
||||
"GAA": "Ga",
|
||||
"KAT": "Georgiska",
|
||||
"GRE": "Grekiska",
|
||||
"KAL": "Grönländska",
|
||||
"GUJ": "Gujarati",
|
||||
"HEB": "Hebreiska",
|
||||
"HIN": "Hindi",
|
||||
"IBO": "Ibo",
|
||||
"IND": "Indonesiska",
|
||||
"ISL": "Isländska",
|
||||
"ITA": "Italienska",
|
||||
"JPN": "Japanska",
|
||||
"YID": "Jiddisch",
|
||||
"KAM": "Kamba",
|
||||
"KHM": "Khmer",
|
||||
"KAN": "Kannada",
|
||||
"KAR": "Karenska",
|
||||
"CAT": "Katalanska",
|
||||
"KAZ": "Kazakiska",
|
||||
"KIK": "Kikuyu",
|
||||
"ZHO": "Kinesiska",
|
||||
"CMN": "Kinesiska, Mandarin",
|
||||
"HAK": "Kinesiska, Hakka",
|
||||
"YUE": "Kinesiska, Kantonesiska",
|
||||
"NAN": "Kinesiska, Min Nan",
|
||||
"KIN": "Kinyarwanda",
|
||||
"KIR": "Kirgisiska",
|
||||
"RUN": "Kirundi",
|
||||
"KON": "Kongo",
|
||||
"KOR": "Koreanska",
|
||||
"ROP": "Kreolska",
|
||||
"HRV": "Kroatiska",
|
||||
"KRO": "Kru",
|
||||
"KUR": "Kurdiska",
|
||||
"CKB": "Kurdiska, centr.",
|
||||
"KMR": "Kurdiska, norra",
|
||||
"SDH": "Kurdiska, södra",
|
||||
"LAO": "Laotiska",
|
||||
"LAV": "Lettiska",
|
||||
"LMA": "Limba",
|
||||
"LIN": "Lingala",
|
||||
"LIT": "Litauiska",
|
||||
"LUG": "Luganda/Ganda",
|
||||
"LUO": "Luo",
|
||||
"MKD": "Makedonska",
|
||||
"MLG": "Malagaskiska",
|
||||
"MSA": "Malajiska",
|
||||
"MAL": "Malayalami",
|
||||
"MLT": "Maltesiska",
|
||||
"MNK": "Mandinka",
|
||||
"MRI": "Maori",
|
||||
"MAR": "Marathi",
|
||||
"MYX": "Masaaba, Gisu, Gugisu, Lumasaaba, Masaba",
|
||||
"FIT": "Meänkieli",
|
||||
"MON": "Mongoliska",
|
||||
"NLD": "Nederländska",
|
||||
"NEP": "Nepalesiska",
|
||||
"NOR": "Norska",
|
||||
"NYA": "Nyanja",
|
||||
"ORM": "Oromo",
|
||||
"PUS": "Pashto",
|
||||
"PTN": "Patani",
|
||||
"FAS": "Persiska",
|
||||
"POL": "Polska",
|
||||
"POR": "Portugisiska",
|
||||
"PAN": "Punjabi",
|
||||
"ROM": "Romani",
|
||||
"RMC": "Romani, Karpaterna",
|
||||
"RML": "Romani, Baltisk",
|
||||
"RMN": "Romani, Arli",
|
||||
"RMF": "Romani, Kalé",
|
||||
"RMO": "Romani, Sinti",
|
||||
"RMU": "Romani, Tavringer",
|
||||
"RMY": "Romani, Lovari, Kalderari",
|
||||
"RON": "Rumänska",
|
||||
"RUS": "Ryska",
|
||||
"SSY": "Saho",
|
||||
"NSM": "Samiska, (norra)",
|
||||
"SMI": "Samiska",
|
||||
"SMJ": "Samiska, Lulesamiska",
|
||||
"SJE": "Samiska, Pitesamiska",
|
||||
"SMA": "Samiska, Sydsamiska",
|
||||
"SJU": "Samiska, Umesamiska",
|
||||
"SMO": "Samoanska",
|
||||
"SRP": "Serbiska",
|
||||
"HBS": "Serbokroatiska",
|
||||
"SOT": "Sydsotho",
|
||||
"SNA": "Shona",
|
||||
"SIN": "Singalesiska",
|
||||
"SLK": "Slovakiska",
|
||||
"SLV": "Slovenska",
|
||||
"SOM": "Somaliska",
|
||||
"SPA": "Spanska",
|
||||
"SWA": "Swahili",
|
||||
"SYC": "Syrianska/assyriska, suryaya, suryoyo",
|
||||
"SYR": "Syriska",
|
||||
"TRU": "Syriska, Turoyo",
|
||||
"TLG": "Tagalog",
|
||||
"TAM": "Tamil",
|
||||
"TAT": "Tatariska",
|
||||
"TEL": "Telugu",
|
||||
"THA": "Thai",
|
||||
"TIB": "Tibetanska",
|
||||
"TIG": "Tigre",
|
||||
"TIR": "Tigrinja",
|
||||
"CES": "Tjeckiska",
|
||||
"TON": "Tonganska",
|
||||
"TSN": "Tswana",
|
||||
"TUR": "Turkiska",
|
||||
"DEU": "Tyska",
|
||||
"UIG": "Uiguriska",
|
||||
"UKR": "Ukrainska",
|
||||
"HUN": "Ungerska",
|
||||
"URD": "Urdu",
|
||||
"UZB": "Uzbekiska",
|
||||
"VIE": "Vietnamesiska",
|
||||
"WOL": "Wolof",
|
||||
"YOR": "Yoruba",
|
||||
"ZUL": "Zulu",
|
||||
"SPK": "Övriga språk"
|
||||
},
|
||||
"categories": {
|
||||
"trainingSchool": "Träningsskolan",
|
||||
"modernLanguages": "Moderna språk",
|
||||
"modernLanguagesA1": "elevens val",
|
||||
"modernLanguagesA2": "språkval",
|
||||
"modernLanguagesAlt": "Alt moderna språk, språkval",
|
||||
"motherTounge": "Modersmål",
|
||||
"unknown": "Okänd",
|
||||
"misc": "Diverse"
|
||||
},
|
||||
"misc": {
|
||||
"LUNCH": "Lunch",
|
||||
"PRANDIUM": "Lunch",
|
||||
"MTID": "Mentorstid",
|
||||
"RAST": "Rast"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"include": [
|
||||
"src/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2015",
|
||||
"module": "CommonJS",
|
||||
"esModuleInterop": true,
|
||||
"declaration": true,
|
||||
"outDir": "./dist",
|
||||
"resolveJsonModule": true,
|
||||
"strict": true,
|
||||
"sourceMap": true
|
||||
},
|
||||
"include": [
|
||||
"src",
|
||||
"src/**/*.json"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"**/*.test.ts"
|
||||
]
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue