feat: 添加西班牙语与俄语适配 #89
@ -67,6 +67,8 @@
|
|||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<el-dropdown-item command="zh">简体中文</el-dropdown-item>
|
<el-dropdown-item command="zh">简体中文</el-dropdown-item>
|
||||||
<el-dropdown-item command="en">English</el-dropdown-item>
|
<el-dropdown-item command="en">English</el-dropdown-item>
|
||||||
|
<el-dropdown-item command="es">Español</el-dropdown-item>
|
||||||
|
<el-dropdown-item command="ru">Русский</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
import type { Language as ElementLanguage } from 'element-plus/es/locale';
|
import type { Language as ElementLanguage } from 'element-plus/es/locale';
|
||||||
import zhCn from 'element-plus/es/locale/lang/zh-cn';
|
import zhCn from 'element-plus/es/locale/lang/zh-cn';
|
||||||
import en from 'element-plus/es/locale/lang/en';
|
import en from 'element-plus/es/locale/lang/en';
|
||||||
|
import es from 'element-plus/es/locale/lang/es';
|
||||||
|
import ru from 'element-plus/es/locale/lang/ru';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 应用语言映射结构
|
* 应用语言映射结构
|
||||||
@ -28,6 +30,14 @@ export const localeMap = {
|
|||||||
directus: 'en-US',
|
directus: 'en-US',
|
||||||
element: en,
|
element: en,
|
||||||
},
|
},
|
||||||
|
es: {
|
||||||
|
directus: 'es-ES',
|
||||||
|
element: es,
|
||||||
|
},
|
||||||
|
ru: {
|
||||||
|
directus: 'ru-RU',
|
||||||
|
element: ru,
|
||||||
|
},
|
||||||
} satisfies Record<string, LocaleMapping>;
|
} satisfies Record<string, LocaleMapping>;
|
||||||
|
|
||||||
/** 应用支持的语言键类型 **/
|
/** 应用支持的语言键类型 **/
|
||||||
|
|||||||
123
i18n/locales/es.json
Normal file
123
i18n/locales/es.json
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
{
|
||||||
|
"back": "Back",
|
||||||
|
"not-found": "Page Not Found",
|
||||||
|
"search-placeholder": "Search...",
|
||||||
|
"search": {
|
||||||
|
"title": "Search",
|
||||||
|
"head-title": "Search",
|
||||||
|
"search-button": "Search",
|
||||||
|
"results-for": "Results for \"{query}\"",
|
||||||
|
"result-count": "{count} results",
|
||||||
|
"no-results": "No results found for \"{query}\".",
|
||||||
|
"no-query": "Enter a keyword to start searching.",
|
||||||
|
"untitled": "Untitled",
|
||||||
|
"sections": {
|
||||||
|
"product": "Products",
|
||||||
|
"solution": "Solutions",
|
||||||
|
"faq": "Faqs",
|
||||||
|
"document": "Documents",
|
||||||
|
"default": "Other"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"company-name": "Jinshen Machinary Manufacturing Co., Ltd.",
|
||||||
|
"company-description": "We specialize in manufacturing a range of paper tube and can equipment, integrating design, manufacturing, sales, and service.",
|
||||||
|
"learn-more": "Learn More",
|
||||||
|
"products-desc": "We provide high-quality product solutions to meet various business needs.",
|
||||||
|
"solutions-desc": "Providing customized technology solutions for enterprises to accelerate digital transformation.",
|
||||||
|
"support-desc": "24/7 professional technical support to ensure stable operation of your business.",
|
||||||
|
"quick-links": "Quick Links",
|
||||||
|
"utilities": "Utilities",
|
||||||
|
"navigation": {
|
||||||
|
"home": "Home",
|
||||||
|
"products": "Products",
|
||||||
|
"solutions": "Solutions",
|
||||||
|
"support": "Support",
|
||||||
|
"about-us": "About Us",
|
||||||
|
"contact-info": "Contact Info",
|
||||||
|
"downloads": "Downloads",
|
||||||
|
"faq": "FAQ",
|
||||||
|
"documents": "Documents",
|
||||||
|
"calculator": "Calculator",
|
||||||
|
"address": "Company Address"
|
||||||
|
},
|
||||||
|
"contact-info": "Contact Us",
|
||||||
|
"telephone": "Telephone",
|
||||||
|
"email": "Email",
|
||||||
|
"address": "Address",
|
||||||
|
"company-address": "No. 689 Qiushi Road, Wutong Industrial Zone, Tongxiang City, Zhejiang Province, China",
|
||||||
|
"follow-us": "Follow Us",
|
||||||
|
"all-rights-reserved": "All rights reserved",
|
||||||
|
"privacy-policy": "Privacy Policy",
|
||||||
|
"terms-of-service": "Terms of Service",
|
||||||
|
"sitemap": "Sitemap",
|
||||||
|
"product-details": "Product Details",
|
||||||
|
"product-not-found": "Product Not Found",
|
||||||
|
"product-not-found-desc": "Sorry, the product you are looking for does not exist or has been removed.",
|
||||||
|
"back-to-products": "Back to Products",
|
||||||
|
"solution-not-found": "Solution Not Found",
|
||||||
|
"solution-not-found-desc": "Sorry, the solution you are lokking for does not exist or has been removed.",
|
||||||
|
"back-to-solutions": "Back to Solutions",
|
||||||
|
"page-not-found": "Page Not Found",
|
||||||
|
"page-not-found-desc": "Sorry, the page you are looking for does not exist or has been removed.",
|
||||||
|
"back-to-home": "Back to Home",
|
||||||
|
"no-content-available": "No detailed information available",
|
||||||
|
"loading": "Loading...",
|
||||||
|
"our-products": "Our Products",
|
||||||
|
"learn-our-solutions": "Learn Our Solutions",
|
||||||
|
"all": "All",
|
||||||
|
"support-page-desc": "Zhejiang Jinshen Machinery Manufacturing Co., Ltd is committed to providing high-quality products and services to our customers. For products such as paper tube machines, slitting machines, and paper straw equipment, we offer comprehensive after-sales support to ensure our customers can use our products with confidence.",
|
||||||
|
"support-card-desc": {
|
||||||
|
"faq": "We have compiled answers to frequently asked questions to help you quickly resolve any concerns.",
|
||||||
|
"documents": "We provide product manuals, technical specifications, and other documentation for easy reference.",
|
||||||
|
"contact-info": "Contact us by phone or email, and we will provide on-site support for you."
|
||||||
|
},
|
||||||
|
|
||||||
|
"product-filter": {
|
||||||
|
"product-type": "Product type",
|
||||||
|
"product-model": "Product model",
|
||||||
|
"keyword": "Keyword",
|
||||||
|
"select-product-type": "Select product type",
|
||||||
|
"select-product-model": "Select product model",
|
||||||
|
"enter-keyword": "Enter keyword"
|
||||||
|
},
|
||||||
|
"document-meta": {
|
||||||
|
"size": "Size",
|
||||||
|
"format": "Format",
|
||||||
|
"type": "Type",
|
||||||
|
"upload-at": "Upload at"
|
||||||
|
},
|
||||||
|
"document-action": {
|
||||||
|
"download": "Download",
|
||||||
|
"open-in-new-tab": "Open in New Tab",
|
||||||
|
"preview": "Preview"
|
||||||
|
},
|
||||||
|
"mobile-menu": {
|
||||||
|
"title": "Menu",
|
||||||
|
"navigation": "Navigation",
|
||||||
|
"utilities": "Utilities"
|
||||||
|
},
|
||||||
|
"homepage": {
|
||||||
|
"recommended-products": "Recommended Products",
|
||||||
|
"recommended-products-desc": "Explore our curated selection of products to meet your diverse needs. Whether it's innovative technology or classic designs, we offer quality choices for you.",
|
||||||
|
"recommended-solutions": "Recommended Solutions",
|
||||||
|
"recommended-solutions-desc": "Learn about our tailored solutions designed to help your business thrive in a competitive market."
|
||||||
|
},
|
||||||
|
"page-title": {
|
||||||
|
"homepage": "Homepage",
|
||||||
|
"products": "Products",
|
||||||
|
"solutions": "Solutions",
|
||||||
|
"support": "Support",
|
||||||
|
"faq": "FAQ",
|
||||||
|
"documents": "Documents",
|
||||||
|
"contact-us": "Contact Us",
|
||||||
|
"download": "Downloads",
|
||||||
|
"preview": "Preview",
|
||||||
|
"about-us": "About Us"
|
||||||
|
},
|
||||||
|
"product-tab": {
|
||||||
|
"details": "Details",
|
||||||
|
"specs": "Specifications",
|
||||||
|
"faq": "FAQ",
|
||||||
|
"documents": "Documents"
|
||||||
|
}
|
||||||
|
}
|
||||||
123
i18n/locales/ru.json
Normal file
123
i18n/locales/ru.json
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
{
|
||||||
|
"back": "Back",
|
||||||
|
"not-found": "Page Not Found",
|
||||||
|
"search-placeholder": "Search...",
|
||||||
|
"search": {
|
||||||
|
"title": "Search",
|
||||||
|
"head-title": "Search",
|
||||||
|
"search-button": "Search",
|
||||||
|
"results-for": "Results for \"{query}\"",
|
||||||
|
"result-count": "{count} results",
|
||||||
|
"no-results": "No results found for \"{query}\".",
|
||||||
|
"no-query": "Enter a keyword to start searching.",
|
||||||
|
"untitled": "Untitled",
|
||||||
|
"sections": {
|
||||||
|
"product": "Products",
|
||||||
|
"solution": "Solutions",
|
||||||
|
"faq": "Faqs",
|
||||||
|
"document": "Documents",
|
||||||
|
"default": "Other"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"company-name": "Jinshen Machinary Manufacturing Co., Ltd.",
|
||||||
|
"company-description": "We specialize in manufacturing a range of paper tube and can equipment, integrating design, manufacturing, sales, and service.",
|
||||||
|
"learn-more": "Learn More",
|
||||||
|
"products-desc": "We provide high-quality product solutions to meet various business needs.",
|
||||||
|
"solutions-desc": "Providing customized technology solutions for enterprises to accelerate digital transformation.",
|
||||||
|
"support-desc": "24/7 professional technical support to ensure stable operation of your business.",
|
||||||
|
"quick-links": "Quick Links",
|
||||||
|
"utilities": "Utilities",
|
||||||
|
"navigation": {
|
||||||
|
"home": "Home",
|
||||||
|
"products": "Products",
|
||||||
|
"solutions": "Solutions",
|
||||||
|
"support": "Support",
|
||||||
|
"about-us": "About Us",
|
||||||
|
"contact-info": "Contact Info",
|
||||||
|
"downloads": "Downloads",
|
||||||
|
"faq": "FAQ",
|
||||||
|
"documents": "Documents",
|
||||||
|
"calculator": "Calculator",
|
||||||
|
"address": "Company Address"
|
||||||
|
},
|
||||||
|
"contact-info": "Contact Us",
|
||||||
|
"telephone": "Telephone",
|
||||||
|
"email": "Email",
|
||||||
|
"address": "Address",
|
||||||
|
"company-address": "No. 689 Qiushi Road, Wutong Industrial Zone, Tongxiang City, Zhejiang Province, China",
|
||||||
|
"follow-us": "Follow Us",
|
||||||
|
"all-rights-reserved": "All rights reserved",
|
||||||
|
"privacy-policy": "Privacy Policy",
|
||||||
|
"terms-of-service": "Terms of Service",
|
||||||
|
"sitemap": "Sitemap",
|
||||||
|
"product-details": "Product Details",
|
||||||
|
"product-not-found": "Product Not Found",
|
||||||
|
"product-not-found-desc": "Sorry, the product you are looking for does not exist or has been removed.",
|
||||||
|
"back-to-products": "Back to Products",
|
||||||
|
"solution-not-found": "Solution Not Found",
|
||||||
|
"solution-not-found-desc": "Sorry, the solution you are lokking for does not exist or has been removed.",
|
||||||
|
"back-to-solutions": "Back to Solutions",
|
||||||
|
"page-not-found": "Page Not Found",
|
||||||
|
"page-not-found-desc": "Sorry, the page you are looking for does not exist or has been removed.",
|
||||||
|
"back-to-home": "Back to Home",
|
||||||
|
"no-content-available": "No detailed information available",
|
||||||
|
"loading": "Loading...",
|
||||||
|
"our-products": "Our Products",
|
||||||
|
"learn-our-solutions": "Learn Our Solutions",
|
||||||
|
"all": "All",
|
||||||
|
"support-page-desc": "Zhejiang Jinshen Machinery Manufacturing Co., Ltd is committed to providing high-quality products and services to our customers. For products such as paper tube machines, slitting machines, and paper straw equipment, we offer comprehensive after-sales support to ensure our customers can use our products with confidence.",
|
||||||
|
"support-card-desc": {
|
||||||
|
"faq": "We have compiled answers to frequently asked questions to help you quickly resolve any concerns.",
|
||||||
|
"documents": "We provide product manuals, technical specifications, and other documentation for easy reference.",
|
||||||
|
"contact-info": "Contact us by phone or email, and we will provide on-site support for you."
|
||||||
|
},
|
||||||
|
|
||||||
|
"product-filter": {
|
||||||
|
"product-type": "Product type",
|
||||||
|
"product-model": "Product model",
|
||||||
|
"keyword": "Keyword",
|
||||||
|
"select-product-type": "Select product type",
|
||||||
|
"select-product-model": "Select product model",
|
||||||
|
"enter-keyword": "Enter keyword"
|
||||||
|
},
|
||||||
|
"document-meta": {
|
||||||
|
"size": "Size",
|
||||||
|
"format": "Format",
|
||||||
|
"type": "Type",
|
||||||
|
"upload-at": "Upload at"
|
||||||
|
},
|
||||||
|
"document-action": {
|
||||||
|
"download": "Download",
|
||||||
|
"open-in-new-tab": "Open in New Tab",
|
||||||
|
"preview": "Preview"
|
||||||
|
},
|
||||||
|
"mobile-menu": {
|
||||||
|
"title": "Menu",
|
||||||
|
"navigation": "Navigation",
|
||||||
|
"utilities": "Utilities"
|
||||||
|
},
|
||||||
|
"homepage": {
|
||||||
|
"recommended-products": "Recommended Products",
|
||||||
|
"recommended-products-desc": "Explore our curated selection of products to meet your diverse needs. Whether it's innovative technology or classic designs, we offer quality choices for you.",
|
||||||
|
"recommended-solutions": "Recommended Solutions",
|
||||||
|
"recommended-solutions-desc": "Learn about our tailored solutions designed to help your business thrive in a competitive market."
|
||||||
|
},
|
||||||
|
"page-title": {
|
||||||
|
"homepage": "Homepage",
|
||||||
|
"products": "Products",
|
||||||
|
"solutions": "Solutions",
|
||||||
|
"support": "Support",
|
||||||
|
"faq": "FAQ",
|
||||||
|
"documents": "Documents",
|
||||||
|
"contact-us": "Contact Us",
|
||||||
|
"download": "Downloads",
|
||||||
|
"preview": "Preview",
|
||||||
|
"about-us": "About Us"
|
||||||
|
},
|
||||||
|
"product-tab": {
|
||||||
|
"details": "Details",
|
||||||
|
"specs": "Specifications",
|
||||||
|
"faq": "FAQ",
|
||||||
|
"documents": "Documents"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -122,6 +122,8 @@ export default defineNuxtConfig({
|
|||||||
locales: [
|
locales: [
|
||||||
{ code: 'en', language: 'en-US', name: 'English', file: 'en.json' },
|
{ code: 'en', language: 'en-US', name: 'English', file: 'en.json' },
|
||||||
{ code: 'zh', language: 'zh-CN', name: '简体中文', file: 'zh.json' },
|
{ code: 'zh', language: 'zh-CN', name: '简体中文', file: 'zh.json' },
|
||||||
|
{ code: 'es', language: 'es-ES', name: 'Español', file: 'es.json' },
|
||||||
|
{ code: 'ru', language: 'ru-RU', name: 'Русский', file: 'ru.json' },
|
||||||
],
|
],
|
||||||
defaultLocale: 'zh',
|
defaultLocale: 'zh',
|
||||||
strategy: 'prefix_except_default',
|
strategy: 'prefix_except_default',
|
||||||
|
|||||||
Reference in New Issue
Block a user