mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-08 10:16:24 +00:00
♻️ refactor: standardize code formatting and improve readability across components
- Updated component files to use consistent single quotes for strings. - Removed unnecessary newlines and adjusted indentation for better readability. - Simplified conditional rendering and improved code structure in various components. - Added ESLint configuration for better code quality and adherence to standards. - Enhanced error handling in i18n request logic.
This commit is contained in:
@ -9,7 +9,8 @@ export default getRequestConfig(async () => {
|
||||
locales.map(async (locale) => {
|
||||
try {
|
||||
return (await import(`@/locales/${locale}.json`)).default;
|
||||
} catch (error) {
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
return {};
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user