mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 17:58:43 -05:00
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:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user