diff --git a/app/components/shared/JinshenHeader.vue b/app/components/shared/JinshenHeader.vue index c9296c9..e3e86e6 100644 --- a/app/components/shared/JinshenHeader.vue +++ b/app/components/shared/JinshenHeader.vue @@ -67,6 +67,8 @@ 简体中文 English + Español + Русский diff --git a/app/composables/useLocalizations.ts b/app/composables/useLocalizations.ts index a39dfc5..bab88ae 100644 --- a/app/composables/useLocalizations.ts +++ b/app/composables/useLocalizations.ts @@ -1,6 +1,8 @@ import type { Language as ElementLanguage } from 'element-plus/es/locale'; import zhCn from 'element-plus/es/locale/lang/zh-cn'; 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', element: en, }, + es: { + directus: 'es-ES', + element: es, + }, + ru: { + directus: 'ru-RU', + element: ru, + }, } satisfies Record; /** 应用支持的语言键类型 **/ diff --git a/i18n/locales/es.json b/i18n/locales/es.json new file mode 100644 index 0000000..f9fde1c --- /dev/null +++ b/i18n/locales/es.json @@ -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" + } +} diff --git a/i18n/locales/ru.json b/i18n/locales/ru.json new file mode 100644 index 0000000..f9fde1c --- /dev/null +++ b/i18n/locales/ru.json @@ -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" + } +} diff --git a/nuxt.config.ts b/nuxt.config.ts index fdd3911..90f8f89 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -122,6 +122,8 @@ export default defineNuxtConfig({ locales: [ { code: 'en', language: 'en-US', name: 'English', file: 'en.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', strategy: 'prefix_except_default',