sample-piral 0.15.0-beta.4708 → 0.15.0-beta.4725
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/{index.e03c60.js → index.2fb91b.js} +168 -9
- package/app/index.2fb91b.js.map +1 -0
- package/app/index.d.ts +9 -0
- package/app/index.html +1 -1
- package/app/index.js +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +1 -1
- package/app/index.e03c60.js.map +0 -1
package/app/index.d.ts
CHANGED
|
@@ -163,6 +163,15 @@ export interface PiralEventMap extends PiralCustomEventMap {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
export interface PiletLocaleApi {
|
|
166
|
+
/**
|
|
167
|
+
* Adds a list of translations to the existing translations.
|
|
168
|
+
*
|
|
169
|
+
* Internally, setTranslations is used, which means the translations will be exclusively used for
|
|
170
|
+
* retrieving translations for the pilet.
|
|
171
|
+
* @param messagesList The list of messages that extend the existing translations
|
|
172
|
+
* @param isOverriding Indicates whether the new translations overwrite the existing translations
|
|
173
|
+
*/
|
|
174
|
+
addTranslations(messagesList: Array<LocalizationMessages>, isOverriding?: boolean): void;
|
|
166
175
|
/**
|
|
167
176
|
* Gets the currently selected language directly.
|
|
168
177
|
*/
|
package/app/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<title>Piral Sample</title>
|
|
6
6
|
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
|
|
7
7
|
|
|
8
|
-
<script defer src="/index.
|
|
8
|
+
<script defer src="/index.2fb91b.js"></script></head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="app">
|
|
11
11
|
<div class="pi-center">
|
package/app/index.js
CHANGED
|
@@ -2,7 +2,7 @@ if (process.env.NODE_ENV === 'test') {
|
|
|
2
2
|
// behavior for the test environment, we'll try to make it work
|
|
3
3
|
|
|
4
4
|
if (typeof window !== 'undefined') {
|
|
5
|
-
require('.//index.
|
|
5
|
+
require('.//index.2fb91b.js');
|
|
6
6
|
const ctx = window['dbg:piral'];
|
|
7
7
|
const dependencies = (ctx && ctx.pilets && ctx.pilets.getDependencies({})) || {};
|
|
8
8
|
module.exports = dependencies['sample-piral'] || {};
|
package/files.tar
CHANGED
|
Binary file
|
package/files_once.tar
CHANGED
|
Binary file
|
package/package.json
CHANGED