const countryToLanguage = { US: 'en', // English GB: 'en', // English FR: 'fr', // French DE: 'de', // German ES: 'es', // Spanish IT: 'it', // Italian NG: 'en', // English (Nigeria) IN: 'hi', // Hindi CN: 'zh-CN', // Simplified Chinese TW: 'zh-TW', // Traditional Chinese (Taiwan) JP: 'ja', // Japanese KR: 'ko', // Korean RU: 'ru', // Russian PT: 'pt', // Portuguese BR: 'pt', // Portuguese (Brazil) MX: 'es', // Spanish (Mexico) CA: 'en', // English (Canada) AR: 'es', // Spanish (Argentina) CO: 'es', // Spanish (Colombia) SA: 'ar', // Arabic AE: 'ar', // Arabic (UAE) EG: 'ar', // Arabic (Egypt) TR: 'tr', // Turkish GR: 'el', // Greek SE: 'sv', // Swedish NO: 'no', // Norwegian FI: 'fi', // Finnish DK: 'da', // Danish NL: 'nl', // Dutch PL: 'pl', // Polish CZ: 'cs', // Czech HU: 'hu', // Hungarian RO: 'ro', // Romanian UA: 'uk', // Ukrainian TH: 'th', // Thai VN: 'vi', // Vietnamese ZA: 'en', // English (South Africa) PK: 'ur', // Urdu BD: 'bn', // Bengali ID: 'id', // Indonesian MY: 'ms', // Malay PH: 'en', // English (Philippines) AU: 'en', // English (Australia) NZ: 'en', // English (New Zealand) PE: 'es', // Spanish (Peru) CL: 'es', // Spanish (Chile) BO: 'es', // Spanish (Bolivia) PY: 'es', // Spanish (Paraguay) VE: 'es', // Spanish (Venezuela) CR: 'es', // Spanish (Costa Rica) GT: 'es', // Spanish (Guatemala) EC: 'es', // Spanish (Ecuador) DO: 'es', // Spanish (Dominican Republic) HN: 'es', // Spanish (Honduras) SV: 'es', // Spanish (El Salvador) NI: 'es', // Spanish (Nicaragua) PA: 'es', // Spanish (Panama) JM: 'en', // English (Jamaica) TZ: 'sw', // Swahili (Tanzania) KE: 'sw', // Swahili (Kenya) ZM: 'en', // English (Zambia) UG: 'en', // English (Uganda) MW: 'en', // English (Malawi) BW: 'en', // English (Botswana) LS: 'en', // English (Lesotho) NA: 'en', // English (Namibia) MD: 'ro', // Romanian (Moldova) LV: 'lv', // Latvian EE: 'et', // Estonian LT: 'lt', // Lithuanian BY: 'be', // Belarusian AM: 'hy', // Armenian AZ: 'az', // Azerbaijani KY: 'ky', // Kyrgyz MN: 'mn', // Mongolian KA: 'ka', // Georgian SI: 'si', // Sinhala (Sri Lanka) PS: 'ps', // Pashto FA: 'fa', // Persian (Farsi) HE: 'he', // Hebrew MS: 'ms', // Malay TL: 'tl', // Tagalog HJ: 'mr', // Marathi PA: 'pa', // Punjabi GU: 'gu', // Gujarati TE: 'te', // Telugu TA: 'ta', // Tamil KN: 'kn', // Kannada ML: 'ml', // Malayalam BN: 'bn', // Bengali AR: 'ar', // Arabic SW: 'sw', // Swahili LA: 'la', // Latin EU: 'eu', // Basque GL: 'gl', // Galician IS: 'is', // Icelandic SQ: 'sq', // Albanian CY: 'cy', // Welsh MR: 'mr', // Marathi SR: 'sr', // Serbian HU: 'hu', // Hungarian FIL: 'fil', // Filipino XH: 'xh', // Xhosa ZU: 'zu', // Zulu AMHARIC: 'am', // Amharic }; // Fetch user's country based on IP async function getUserCountry() { try { const response = await fetch('https://ipapi.co/json/'); // Reliable IP Geolocation API const data = await response.json(); return data.country_code; // Returns 'US', 'FR', etc. } catch (error) { console.error("Error fetching location:", error); return null; // Fallback if geolocation fails } } // Initialize Google Translate dynamically async function googleTranslateElementInit() { const countryCode = await getUserCountry(); const languageCode = countryToLanguage[countryCode] || 'en'; // Default to English // Initialize Google Translate Widget new google.translate.TranslateElement({ pageLanguage: 'en', // Default page language includedLanguages: languageCode, // Translate to detected language autoDisplay: true // Automatically trigger translation }, 'google_translate_element'); // Force translation (simulate interaction) const selectInterval = setInterval(() => { const select = document.querySelector('.goog-te-combo'); if (select) { select.value = languageCode; // Set the detected language select.dispatchEvent(new Event('change')); // Trigger language change clearInterval(selectInterval); } }, 500); // Poll every 500ms until widget loads } // Start translation after DOM is loaded document.addEventListener('DOMContentLoaded', googleTranslateElementInit);

Office Address

GPO Box 2975, Melbourne VIC 3001, Australia

Email Address

info@bm.primelineshippings.com

Office Address

GPO Box 2975, Melbourne VIC 3001, Australia

Email Address

info@bm.primelineshippings.com

img

Global Coverage

Primeline Shipping is dedicated to providing seamless logistics solutions worldwide. Our extensive global network ensures that your shipments reach their destinations efficiently and securely, no matter where in the world they need to go.

Comprehensive Network

  • Strategically located warehouses and distribution centers across key regions worldwide.
  • Partnerships with leading carriers and freight forwarders to offer the best rates and services.
  • Access to a vast transportation network, including air, ocean, and road freight options, to cater to your shipping needs.

Customized Solutions

We understand that every shipment is unique. Our team works closely with you to develop tailored logistics solutions that meet your specific requirements. From specialized packaging to documentation handling, we ensure every detail is taken care of.

Real-Time Tracking

Stay informed about your shipment's progress with our real-time tracking system. You can monitor your goods from origin to destination, ensuring peace of mind and transparency throughout the shipping process.

Expert Support

Our dedicated team of logistics experts is available 24/7 to assist you with any questions or concerns. Whether you need help with customs clearance, route planning, or emergency support, we are here to ensure your logistics experience is smooth and hassle-free.

Sustainability Commitment

Primeline Shipping is committed to sustainable practices in all our operations. We actively seek to reduce our carbon footprint and promote eco-friendly transportation options, ensuring that our global logistics solutions are not only effective but also environmentally responsible.