File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
packages/compas-open-scd/src/translations Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { Strings } from 'lit-translate' ;
2
- import { de } from './de.js' ;
3
- import { en } from './en.js' ;
2
+ import { de as compasDe } from './de.js' ;
3
+ import { en as compasEn } from './en.js' ;
4
+ import { de as oscdDe } from '@openscd/open-scd/src/translations/de.js' ;
5
+ import { en as oscdEn } from '@openscd/open-scd/src/translations/en.js' ;
4
6
5
7
export type Language = 'en' | 'de' ;
6
- export const languages = { en, de } ;
8
+ export const languages = {
9
+ en : { ...oscdEn , ...compasEn } ,
10
+ de : { ...oscdDe , ...compasDe } ,
11
+ } ;
7
12
8
- export type Translations = typeof en ;
13
+ export type Translations = typeof compasEn ;
9
14
10
15
export async function loader ( lang : string ) : Promise < Strings > {
11
16
if ( Object . keys ( languages ) . includes ( lang ) ) return languages [ < Language > lang ] ;
You can’t perform that action at this time.
0 commit comments