Skip to content

Commit

Permalink
Add maori, osloCollection; Disable lang/ quotes; Clean up lang files;
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend committed Oct 25, 2023
1 parent edb0be8 commit 41ec660
Show file tree
Hide file tree
Showing 21 changed files with 9 additions and 40 deletions.
3 changes: 2 additions & 1 deletion src/generators/localization/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export function run(templateData) {
localizeMixin: 'import { LocalizeMixin } from \'@brightspace-ui/core/mixins/localize/localize-mixin.js\';\n',
localizeResources: `\n\tstatic get localizeConfig() {
return {
importFunc: async lang => (await import(\`./lang/\${lang}.js\`)).default
importFunc: async lang => (await import(\`./lang/\${lang}.js\`)).default,
osloCollection: '@d2l\\\\${templateData.hyphenatedName}\\\\${templateData.hyphenatedName}'
};
}\n`
};
Expand Down
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/ar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "مرحبا"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "Helo"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/da.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "Hej"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/de.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "Hallo"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/en-gb.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "Hello"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/en.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "Hello"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/es-es.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "Hola"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/es.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "Hola"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/fr-fr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "Bonjour"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/fr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "Bonjour"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/hi.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "नमस्ते"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/ja.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "こんにちは"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/ko.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "여보세요"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/nl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "Hallo"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/pt.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "Olá"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/sv.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "Hallå"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/tr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "Merhaba"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/zh-cn.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "你好"
};
2 changes: 0 additions & 2 deletions src/generators/localization/templates/static/lang/zh-tw.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint quotes: 0 */

export default {
"hello": "你好"
};
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"extends": "brightspace/lit-config"
"extends": "brightspace/lit-config",
"overrides": [{
"files": "./lang/*.js",
"rules": {
"quotes": 0
}
}]
}

0 comments on commit 41ec660

Please sign in to comment.