mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-15 02:56:18 +02:00
app: prettier
This commit is contained in:
@ -270,7 +270,9 @@ export default class App extends Component {
|
|||||||
async loadLanguage(lang) {
|
async loadLanguage(lang) {
|
||||||
log('🇯🇲 fetching defninition');
|
log('🇯🇲 fetching defninition');
|
||||||
|
|
||||||
const catalog = await import(/* webpackMode: "lazy", webpackChunkName: "i18n-[index]" */ `../locales/${lang}/messages.js`);
|
const catalog = await import(
|
||||||
|
/* webpackMode: "lazy", webpackChunkName: "i18n-[index]" */ `../locales/${lang}/messages.js`
|
||||||
|
);
|
||||||
|
|
||||||
this.setState(state => ({
|
this.setState(state => ({
|
||||||
catalogs: {
|
catalogs: {
|
||||||
@ -1496,9 +1498,7 @@ export default class App extends Component {
|
|||||||
const { file } = getFileFromPath(currentItem.files, sourceFilePath);
|
const { file } = getFileFromPath(currentItem.files, sourceFilePath);
|
||||||
if (doesFileExistInFolder(destinationFolder, file.name)) {
|
if (doesFileExistInFolder(destinationFolder, file.name)) {
|
||||||
alert(
|
alert(
|
||||||
`File with name "${
|
`File with name "${file.name}" already exists in the destination folder.`
|
||||||
file.name
|
|
||||||
}" already exists in the destination folder.`
|
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user