Commit eb09bdb8 authored by Tasso Evangelista's avatar Tasso Evangelista Committed by Guilherme Gazzo

[CHORE] Update eslint dependencies (#240)

parent dccc8677
/src/i18n/index.js
/node_modules
/build
/*.log
/.vscode
coverage
package-lock.json
build.tar.gz
......
{
"search.exclude": {
"**/node_modules": false,
"**/bower_components": true
},
}
......@@ -38,13 +38,15 @@ export class Alert extends Component {
<div className={createClassName(styles, 'alert__content')}>
{children}
</div>
{!hideCloseButton && <button
onClick={this.handleDismiss}
className={createClassName(styles, 'alert__close')}
aria-label={I18n.t('Dismiss this alert')}
>
<CloseIcon width={20} />
</button>}
{!hideCloseButton && (
<button
onClick={this.handleDismiss}
className={createClassName(styles, 'alert__close')}
aria-label={I18n.t('Dismiss this alert')}
>
<CloseIcon width={20} />
</button>
)}
</div>
)
}
import { Component, h } from 'preact';
import { Component } from 'preact';
import { Livechat } from '../api';
......
// Generated by i18nline and preact-i18nline.
import I18n from 'preact-i18nline/i18n';
I18n.supportedLocales = ['af', 'ar', 'az', 'be_BY', 'bg', 'bs', 'ca', 'cs', 'cy', 'da', 'de', 'de_AT', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fr', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'km', 'ko', 'ku', 'lo', 'lt', 'lv', 'mn', 'ms_MY', 'nl', 'no', 'pl', 'pt', 'pt_BR', 'ro', 'ru', 'sk_SK', 'sl_SI', 'sq', 'sr', 'sv', 'ta_IN', 'th_TH', 'tr', 'ug', 'uk', 'vi_VN', 'zh', 'zh_HK', 'zh_TW'];
I18n.defaultLocale = 'en';
I18n.import = (locale) => {
// we use a switch here so the import statements are statically
// analyzable. the use of import() will make build tools generate
// separate bundles which are downloaded on-demand.
switch (locale) {
// Generated by i18nline and preact-i18nline.
import I18n from 'preact-i18nline/i18n';
I18n.supportedLocales = ['af','ar','az','be_BY','bg','bs','ca','cs','cy','da','de','de_AT','el','en','eo','es','et','eu','fa','fi','fr','he','hr','hu','id','it','ja','km','ko','ku','lo','lt','lv','mn','ms_MY','nl','no','pl','pt','pt_BR','ro','ru','sk_SK','sl_SI','sq','sr','sv','ta_IN','th_TH','tr','ug','uk','vi_VN','zh','zh_HK','zh_TW'];
I18n.defaultLocale = 'en';
I18n.import = locale => {
// we use a switch here so the import statements are statically
// analyzable. the use of import() will make build tools generate
// separate bundles which are downloaded on-demand.
switch (locale) {
case 'af': return import(/* webpackChunkName: 'i18n.af' */ './af.json');
case 'ar': return import(/* webpackChunkName: 'i18n.ar' */ './ar.json');
case 'az': return import(/* webpackChunkName: 'i18n.az' */ './az.json');
......@@ -64,12 +64,12 @@ I18n.import = (locale) => {
case 'vi_VN': return import(/* webpackChunkName: 'i18n.vi_VN' */ './vi_VN.json');
case 'zh': return import(/* webpackChunkName: 'i18n.zh' */ './zh.json');
case 'zh_HK': return import(/* webpackChunkName: 'i18n.zh_HK' */ './zh_HK.json');
case 'zh_TW': return import(/* webpackChunkName: 'i18n.zh_TW' */ './zh_TW.json');
default: return import(/* webpackChunkName: 'i18n.default' */ './default.json');
}
};
if ((typeof module === 'object') && module.hot) {
case 'zh_TW': return import(/* webpackChunkName: 'i18n.zh_TW' */ './zh_TW.json');
default: return import(/* webpackChunkName: 'i18n.default' */ './default.json');
}
};
if ((typeof module === 'object') && module.hot) {
module.hot.accept('./af.json', I18n.reload('af'));
module.hot.accept('./ar.json', I18n.reload('ar'));
module.hot.accept('./az.json', I18n.reload('az'));
......@@ -125,8 +125,8 @@ if ((typeof module === 'object') && module.hot) {
module.hot.accept('./vi_VN.json', I18n.reload('vi_VN'));
module.hot.accept('./zh.json', I18n.reload('zh'));
module.hot.accept('./zh_HK.json', I18n.reload('zh_HK'));
module.hot.accept('./zh_TW.json', I18n.reload('zh_TW'));
module.hot.accept('./default.json', I18n.reload('default'));
}
export default I18n;
module.hot.accept('./zh_TW.json', I18n.reload('zh_TW'));
module.hot.accept('./default.json', I18n.reload('default'));
}
export default I18n;
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment