onix-board
Advanced tools
Comparing version 1.0.14 to 1.0.15
export * from './chess/index'; | ||
export { registerStrings } from './Intl'; | ||
export { Intl } from './Intl'; |
@@ -8,3 +8,3 @@ "use strict"; | ||
var Intl_1 = require("./Intl"); | ||
exports.registerStrings = Intl_1.registerStrings; | ||
exports.Intl = Intl_1.Intl; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,4 @@ | ||
export declare function registerStrings(): void; | ||
export declare class Intl { | ||
private static intlInitialized; | ||
static register(): void; | ||
} |
@@ -5,32 +5,24 @@ "use strict"; | ||
var onix_chess_1 = require("onix-chess"); | ||
var intlInitialized = false; | ||
function registerStrings() { | ||
if (!intlInitialized) { | ||
onix_chess_1.registerStrings(); | ||
onix_core_1.Intl.registerStrings('chess', { | ||
'ru-ru': { | ||
size: "Размер", | ||
timer_lessone: "менее 1", | ||
timer_empty: "---", | ||
timer_nolabel: ["", "", "", ""], | ||
timer_days: ["дн.", "день", "дня", "дней"], | ||
timer_hours: ["ч.", "час", "часа", "часов"], | ||
timer_minutes: ["мин.", "минута", "минуты", "минут"], | ||
timer_seconds: ["сек.", "секунда", "секунды", "секунд"] | ||
}, | ||
'en-us': { | ||
size: "Size", | ||
timer_lessone: "less 1", | ||
timer_empty: "---", | ||
timer_nolabel: ["", "", "", ""], | ||
timer_days: ["d.", "day", "days", "days"], | ||
timer_hours: ["h.", "hour", "hours", "hours"], | ||
timer_minutes: ["m.", "minute", "minutes", "minutes"], | ||
timer_seconds: ["sec.", "second", "seconds", "seconds"] | ||
} | ||
}); | ||
intlInitialized = true; | ||
var Intl = (function () { | ||
function Intl() { | ||
} | ||
} | ||
exports.registerStrings = registerStrings; | ||
Intl.register = function () { | ||
if (!Intl.intlInitialized) { | ||
onix_core_1.Intl.register(); | ||
onix_chess_1.Intl.register(); | ||
onix_core_1.Intl.registerStrings('chess', { | ||
'ru-ru': { | ||
size: "Размер", | ||
}, | ||
'en-us': { | ||
size: "Size", | ||
} | ||
}); | ||
Intl.intlInitialized = true; | ||
} | ||
}; | ||
Intl.intlInitialized = false; | ||
return Intl; | ||
}()); | ||
exports.Intl = Intl; | ||
//# sourceMappingURL=Intl.js.map |
{ | ||
"name": "onix-board", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "Onix chess board abstractions", | ||
@@ -30,4 +30,4 @@ "main": "built/index.js", | ||
"classnames": "^2.2.5", | ||
"onix-chess": "^1.0.8", | ||
"onix-core": "^1.1.24", | ||
"onix-chess": "^1.0.11", | ||
"onix-core": "^1.1.27", | ||
"react": "^15.6.1", | ||
@@ -37,3 +37,3 @@ "react-dnd": "^2.4.0", | ||
"react-dom": "^15.6.1", | ||
"rxjs": "^5.4.2", | ||
"rxjs": "^5.4.3", | ||
"warning": "^3.0.0" | ||
@@ -40,0 +40,0 @@ }, |
@@ -0,0 +0,0 @@ import { Store } from 'redux'; |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ import * as BoardActionTypes from './BoardActionTypes'; |
export * from './chess/index'; | ||
export { registerStrings } from './Intl'; | ||
export { Intl } from './Intl'; |
import { Intl as IntlCore } from 'onix-core'; | ||
import { registerStrings as IntlChess } from 'onix-chess'; | ||
import { Intl as IntlChess } from 'onix-chess'; | ||
var intlInitialized = false; | ||
export class Intl { | ||
private static intlInitialized = false; | ||
export function registerStrings() { | ||
if (!intlInitialized) { | ||
IntlChess(); | ||
public static register() { | ||
if (!Intl.intlInitialized) { | ||
IntlCore.register(); | ||
IntlChess.register(); | ||
IntlCore.registerStrings('chess', { | ||
'ru-ru': { | ||
size: "Размер", | ||
timer_lessone: "менее 1", | ||
timer_empty: "---", | ||
timer_nolabel: ["", "", "", ""], | ||
timer_days: ["дн.", "день", "дня", "дней"], | ||
timer_hours: ["ч.", "час", "часа", "часов"], | ||
timer_minutes: ["мин.", "минута", "минуты", "минут"], | ||
timer_seconds: ["сек.", "секунда", "секунды", "секунд"] | ||
}, | ||
IntlCore.registerStrings('chess', { | ||
'ru-ru': { | ||
size: "Размер", | ||
}, | ||
'en-us': { | ||
size: "Size", | ||
timer_lessone: "less 1", | ||
timer_empty: "---", | ||
timer_nolabel: ["", "", "", ""], | ||
timer_days: ["d.", "day", "days", "days"], | ||
timer_hours: ["h.", "hour", "hours", "hours"], | ||
timer_minutes: ["m.", "minute", "minutes", "minutes"], | ||
timer_seconds: ["sec.", "second", "seconds", "seconds"] | ||
} | ||
}); | ||
'en-us': { | ||
size: "Size", | ||
} | ||
}); | ||
intlInitialized = true; | ||
Intl.intlInitialized = true; | ||
} | ||
} | ||
} | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40649
1669483
81
Updatedonix-chess@^1.0.11
Updatedonix-core@^1.1.27
Updatedrxjs@^5.4.3