refactor: expose nucleus and supernova via stardust package (#415)

BREAKING CHANGE: nucleus and supernova are no longer public packages and are both replaced by stardust
This commit is contained in:
Miralem Drek
2020-04-28 13:02:41 +02:00
committed by GitHub
parent 7a669316cd
commit 6a28ec3dd4
52 changed files with 315 additions and 1746 deletions

View File

@@ -3,14 +3,14 @@ const { declare } = require('@babel/helper-plugin-utils');
const vars = require('../apis/nucleus/src/locale/translations/all.json');
const ids = {};
Object.keys(vars).forEach(key => {
Object.keys(vars).forEach((key) => {
ids[vars[key].id] = key;
});
const used = [];
const warnings = {};
const warn = s => console.warn(`\x1b[43m\x1b[30m WARN \x1b[0m \x1b[1m\x1b[33m ${s}\x1b[0m`);
const warn = (s) => console.warn(`\x1b[43m\x1b[30m WARN \x1b[0m \x1b[1m\x1b[33m ${s}\x1b[0m`);
const find = declare((/* api, options */) => {
function useString(id) {

View File

@@ -18,7 +18,7 @@ const languages = [
'ru-RU',
];
Object.keys(vars).forEach(key => {
Object.keys(vars).forEach((key) => {
const supportLanguagesForString = Object.keys(vars[key].locale);
if (supportLanguagesForString.indexOf('en-US') === -1) {
// en-US must exist