ether-code 0.10.5 → 0.10.6
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/cli/ether.js +1 -1
- package/generators/js-generator.js +3 -23
- package/i18n/i18n-js.json +2 -1
- package/package.json +1 -1
package/cli/ether.js
CHANGED
|
@@ -601,9 +601,9 @@ class JSGenerator {
|
|
|
601
601
|
'après': 'after',
|
|
602
602
|
'avant': 'before',
|
|
603
603
|
'remplacer avec': 'replaceWith',
|
|
604
|
-
'
|
|
604
|
+
'contenu HTML': 'innerHTML',
|
|
605
605
|
'HTML externe': 'outerHTML',
|
|
606
|
-
'
|
|
606
|
+
'contenu texte': 'textContent',
|
|
607
607
|
'texte interne': 'innerText',
|
|
608
608
|
'obtenir attribut': 'getAttribute',
|
|
609
609
|
'définir attribut': 'setAttribute',
|
|
@@ -712,8 +712,6 @@ class JSGenerator {
|
|
|
712
712
|
'obtenir coll': 'get',
|
|
713
713
|
'définir coll': 'set',
|
|
714
714
|
'union': 'union',
|
|
715
|
-
'surClic': 'onClick',
|
|
716
|
-
'affichage': 'display',
|
|
717
715
|
'intersection': 'intersection',
|
|
718
716
|
'différence': 'difference',
|
|
719
717
|
'différence symétrique': 'symmetricDifference',
|
|
@@ -1707,26 +1705,8 @@ class JSGenerator {
|
|
|
1707
1705
|
return `${object}[${property}]`
|
|
1708
1706
|
}
|
|
1709
1707
|
|
|
1710
|
-
const knownObjects = [
|
|
1711
|
-
'console', 'document', 'window', 'math', 'json', 'object', 'array',
|
|
1712
|
-
'string', 'number', 'date', 'regexp', 'promise', 'set', 'map',
|
|
1713
|
-
'weakset', 'weakmap', 'symbol', 'reflect', 'proxy', 'intl',
|
|
1714
|
-
'atomics', 'sharedarraybuffer', 'arraybuffer', 'dataview',
|
|
1715
|
-
'uint8array', 'int8array', 'uint16array', 'int16array',
|
|
1716
|
-
'uint32array', 'int32array', 'float32array', 'float64array',
|
|
1717
|
-
'bigint64array', 'biguint64array', 'error', 'typeerror',
|
|
1718
|
-
'syntaxerror', 'referenceerror', 'rangeerror', 'urierror',
|
|
1719
|
-
'localstorage', 'sessionstorage', 'navigator', 'location',
|
|
1720
|
-
'history', 'screen', 'performance', 'fetch', 'request', 'response',
|
|
1721
|
-
'headers', 'url', 'urlsearchparams', 'formdata', 'blob', 'file',
|
|
1722
|
-
'filereader', 'xmlhttprequest', 'websocket', 'worker',
|
|
1723
|
-
'serviceworker', 'notification', 'geolocation'
|
|
1724
|
-
]
|
|
1725
|
-
|
|
1726
1708
|
const objectLower = object.toLowerCase()
|
|
1727
|
-
const
|
|
1728
|
-
|
|
1729
|
-
const translatedProperty = shouldTranslate ? this.translateMethod(property) : property
|
|
1709
|
+
const translatedProperty = this.translateMethod(property)
|
|
1730
1710
|
|
|
1731
1711
|
if (translatedProperty.includes('.')) {
|
|
1732
1712
|
const parts = translatedProperty.split('.')
|
package/i18n/i18n-js.json
CHANGED
|
@@ -451,7 +451,8 @@
|
|
|
451
451
|
"elementPrecedent": { "fr": "élément précédent", "en": "previousElementSibling", "es": "elemento anterior", "ru": "предыдущий элемент", "zh": "上一个兄弟元素", "ja": "プリビアスエレメントシブリング" },
|
|
452
452
|
"recupererId": { "fr": "récupérer id", "en": "getElementById", "es": "obtener por id", "ru": "получить по id", "zh": "通过ID获取", "ja": "IDで取得" },
|
|
453
453
|
"surClic": { "fr": "surClic", "en": "onclick", "es": "alClic", "ru": "приКлике", "zh": "点击时", "ja": "クリック時" },
|
|
454
|
-
"contenuTexte": { "fr": "contenuTexte", "en": "textContent", "es": "contenidoTexto", "ru": "текстовоеСодержимое", "zh": "文本内容", "ja": "テキスト内容" }
|
|
454
|
+
"contenuTexte": { "fr": "contenuTexte", "en": "textContent", "es": "contenidoTexto", "ru": "текстовоеСодержимое", "zh": "文本内容", "ja": "テキスト内容" },
|
|
455
|
+
"modeAffichage": { "fr": "modeAffichage", "en": "display", "es": "modoVisualizacion", "ru": "режимОтображения", "zh": "显示模式", "ja": "表示モード" }
|
|
455
456
|
},
|
|
456
457
|
"evenements": {
|
|
457
458
|
"ecouter": { "fr": "écouter", "en": "addEventListener", "es": "escuchar", "ru": "слушать", "zh": "监听", "ja": "アッドイベントリスナー" },
|