You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/base/src/asset-registries/LocaleData.js
+36-7
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ const localeDataMap = new Map();
7
7
constloaders=newMap();
8
8
constcldrPromises=newMap();
9
9
constreportedErrors=newSet();
10
+
letwarningShown=false;
10
11
11
12
constM_ISO639_OLD_TO_NEW={
12
13
"iw": "he",
@@ -15,6 +16,13 @@ const M_ISO639_OLD_TO_NEW = {
15
16
"sh": "sr",
16
17
};
17
18
19
+
const_showAssetsWarningOnce=localeId=>{
20
+
if(!warningShown){
21
+
console.warn(`[LocaleData] Supported locale "${localeId}" not configured, import the "Assets.js" module from the webcomponents package you are using.`);/* eslint-disable-line */
0 commit comments