HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: /var/www/indoadvisory_new/webapp/src/utils/i18n.js
export const translations = {
    // Navigation
    nav: {
        home: { id: 'Beranda', en: 'Home' },
        about: { id: 'Tentang Kami', en: 'About Us' },
        services: { id: 'Layanan', en: 'Services' },
        portfolio: { id: 'Portfolio', en: 'Portfolio' },
        articles: { id: 'Artikel', en: 'Articles' },
        team: { id: 'Tim', en: 'Team' },
        contact: { id: 'Kontak', en: 'Contact' }
    },
    // Hero Section
    hero: {
        title: {
            id: 'Penasihat Private Equity Terpercaya di Indonesia',
            en: 'Trusted Private Equity Advisory in Indonesia'
        },
        subtitle: {
            id: 'Kami membantu perusahaan mencapai pertumbuhan berkelanjutan melalui strategi investasi yang tepat, valuasi perusahaan yang akurat, dan persiapan IPO yang komprehensif.',
            en: 'We help companies achieve sustainable growth through strategic investments, accurate company valuations, and comprehensive IPO preparation.'
        },
        cta_primary: { id: 'Konsultasi Gratis', en: 'Free Consultation' },
        cta_secondary: { id: 'Lihat Layanan', en: 'View Services' }
    },
    // About Section
    about: {
        title: { id: 'Tentang IndoAdvisory', en: 'About IndoAdvisory' },
        subtitle: {
            id: 'Sebagai firma konsultan private equity terkemuka di Indonesia, kami telah membantu ratusan perusahaan dalam perjalanan pertumbuhan dan transformasi bisnis mereka selama lebih dari 15 tahun.',
            en: 'As a leading private equity consulting firm in Indonesia, we have helped hundreds of companies in their business growth and transformation journey for over 15 years.'
        },
        mission_title: { id: 'Misi Kami', en: 'Our Mission' },
        mission_text: {
            id: 'Menjadi mitra strategis terpercaya dalam mengoptimalkan nilai perusahaan melalui solusi keuangan yang inovatif dan berkelanjutan.',
            en: 'To be a trusted strategic partner in optimizing company value through innovative and sustainable financial solutions.'
        }
    },
    // Services Section
    services: {
        title: { id: 'Layanan Kami', en: 'Our Services' },
        subtitle: {
            id: 'Layanan komprehensif untuk mendukung pertumbuhan dan transformasi bisnis Anda',
            en: 'Comprehensive services to support your business growth and transformation'
        },
        valuation: {
            title: { id: 'Valuasi Perusahaan', en: 'Company Valuation' },
            desc: {
                id: 'Penilaian yang akurat dan komprehensif untuk mendukung keputusan investasi, akuisisi, atau divestasi.',
                en: 'Accurate and comprehensive assessment to support investment, acquisition, or divestiture decisions.'
            }
        },
        ipo: {
            title: { id: 'Persiapan IPO', en: 'IPO Preparation' },
            desc: {
                id: 'Pendampingan lengkap dari tahap persiapan hingga pelaksanaan penawaran umum perdana.',
                en: 'Complete guidance from preparation stage to initial public offering execution.'
            }
        },
        ma: {
            title: { id: 'M&A Advisory', en: 'M&A Advisory' },
            desc: {
                id: 'Konsultasi strategis untuk merger, akuisisi, dan divestasi yang mengoptimalkan nilai transaksi.',
                en: 'Strategic consulting for mergers, acquisitions, and divestitures that optimize transaction value.'
            }
        },
        fundraising: {
            title: { id: 'Fundraising', en: 'Fundraising' },
            desc: {
                id: 'Strategi penggalangan dana yang efektif untuk mendukung ekspansi dan pertumbuhan bisnis.',
                en: 'Effective fundraising strategies to support business expansion and growth.'
            }
        }
    },
    // Team Section
    team: {
        title: { id: 'Tim Ahli Kami', en: 'Our Expert Team' },
        subtitle: {
            id: 'Tim profesional berpengalaman dengan keahlian di berbagai bidang keuangan dan investasi',
            en: 'Experienced professional team with expertise in various fields of finance and investment'
        }
    },
    // Contact Section
    contact: {
        title: { id: 'Hubungi Kami', en: 'Contact Us' },
        subtitle: {
            id: 'Siap membantu pertumbuhan bisnis Anda. Mari diskusikan kebutuhan dan tantangan perusahaan Anda.',
            en: 'Ready to help your business grow. Let\'s discuss your company\'s needs and challenges.'
        },
        form: {
            name: { id: 'Nama Lengkap', en: 'Full Name' },
            email: { id: 'Email', en: 'Email' },
            company: { id: 'Perusahaan', en: 'Company' },
            service: { id: 'Layanan yang Diminati', en: 'Service of Interest' },
            message: { id: 'Pesan', en: 'Message' },
            send: { id: 'Kirim Pesan', en: 'Send Message' }
        },
        info: {
            address: { id: 'Alamat', en: 'Address' },
            phone: { id: 'Telepon', en: 'Phone' },
            email: { id: 'Email', en: 'Email' },
            hours: { id: 'Jam Operasional', en: 'Operating Hours' }
        }
    },
    // Articles
    articles: {
        title: { id: 'Artikel & Insights', en: 'Articles & Insights' },
        subtitle: {
            id: 'Dapatkan insights terbaru tentang private equity, investasi, dan pasar modal Indonesia',
            en: 'Get the latest insights on private equity, investments, and Indonesian capital markets'
        },
        read_more: { id: 'Baca selengkapnya', en: 'Read more' },
        related: { id: 'Artikel Terkait', en: 'Related Articles' },
        share: { id: 'Bagikan Artikel', en: 'Share Article' }
    },
    // Footer
    footer: {
        company_desc: {
            id: 'Mitra terpercaya dalam perjalanan pertumbuhan dan transformasi bisnis Anda.',
            en: 'Trusted partner in your business growth and transformation journey.'
        },
        services_title: { id: 'Layanan', en: 'Services' },
        company_title: { id: 'Perusahaan', en: 'Company' },
        copyright: {
            id: '© 2024 IndoAdvisory Equity Advisory. Hak cipta dilindungi undang-undang.',
            en: '© 2024 IndoAdvisory Equity Advisory. All rights reserved.'
        }
    }
};
export function t(key, lang = 'id') {
    const keys = key.split('.');
    let current = translations;
    for (const k of keys) {
        current = current[k];
        if (!current)
            return key;
    }
    return current[lang] || current.id || key;
}
export function getCurrentLanguage(request) {
    const url = new URL(request.url);
    const langParam = url.searchParams.get('lang');
    const acceptLanguage = request.headers.get('accept-language');
    // Check URL parameter first
    if (langParam === 'en' || langParam === 'id') {
        return langParam;
    }
    // Check Accept-Language header
    if (acceptLanguage?.includes('en')) {
        return 'en';
    }
    // Default to Indonesian
    return 'id';
}