Tutorial

B2B SaaS: Add 5 Languages with One Script Tag

Published November 24, 2026

B2B SaaS: Add 5 Languages with One Script Tag

B2B SaaS: Add 5 Languages with One Script Tag

Expanding your B2B SaaS into international markets typically means months of i18n engineering: extracting strings, managing translation files, and wrestling with framework-specific libraries. But what if you could add five languages with a single script tag—no refactoring, no translation backlog?

In this tutorial, I'll show you how to use SiteLocaleAI to localize your B2B SaaS app for five languages (e.g., Spanish, German, French, Japanese, and Portuguese) in under an hour. You'll get automatic LLM-powered translation, localized pricing, and SEO-friendly pre-rendering for search engines.

Why B2B SaaS Localization Is Hard

B2B SaaS apps often have:
- Dynamic content (dashboards, user-generated data)
- Complex pricing tables with multiple currencies
- Marketing pages that need to rank in local search engines
- Framework-specific constraints (React, Vue, WordPress, Shopify, etc.)

Traditional i18n libraries require code changes, translation management, and continuous maintenance. SiteLocaleAI flips the model: it's a drop-in JavaScript library that translates your site on the fly using your own LLM API keys (Claude, GPT-4o-mini, etc.). You stay self-hosted and in control.

Step 1: Get Your SiteLocaleAI API Key

Sign up at SiteLocaleAI and choose a plan. For five languages, the $49 Starter plan is usually sufficient, but if you need advanced SEO pre-rendering, consider $99 Growth. You'll also need an LLM API key (e.g., OpenAI or Anthropic).

Step 2: Add the Script Tag

Add this single script tag to your app's <head> (or before </body>):

<script 
  src="https://cdn.sitelocaleai.com/v1/sitelocale.min.js"
  data-api-key="YOUR_SITELOCALE_API_KEY"
  data-llm-provider="openai"
  data-llm-api-key="YOUR_LLM_API_KEY"
  data-languages="es,de,fr,ja,pt"
  data-default-language="en"
></script>

That's it. The script auto-detects the user's browser language and translates the page content. It works with any framework—React, Vue, Angular, WordPress, Shopify, or plain HTML.

Step 3: Configure Price Localization

B2B SaaS pricing often needs psychological rounding per currency. SiteLocaleAI handles this automatically. Add the following configuration before the script tag:

<script>
  window.SiteLocaleConfig = {
    priceLocalization: {
      enabled: true,
      rounding: 'psychological', // e.g., $49 -> €49, ¥5,000
      currencies: {
        es: 'EUR',
        de: 'EUR',
        fr: 'EUR',
        ja: 'JPY',
        pt: 'BRL'
      }
    }
  };
</script>

Your pricing table will now show localized prices with appropriate rounding, improving conversion in each market.

Step 4: SEO Pre-rendering with CLI

Search engines need fully translated, indexed pages. SiteLocaleAI's CLI pre-renders your site into static HTML for each language. Install it via npm:

npm install -g @sitelocaleai/cli
sitelocale prerender --url https://your-saas.com --languages es,de,fr,ja,pt --output ./dist

This generates language-specific routes (e.g., /es/, /de/) with translated meta tags, hreflang, and content. Deploy the output to your CDN for instant SEO benefits.

Step 5: WordPress? No Node.js Required

If your marketing site runs on WordPress, use the SiteLocaleAI WordPress plugin. It requires no Node.js and integrates with your existing setup. Just install, activate, and enter your API keys. The plugin handles translation, price localization, and SEO pre-rendering automatically.

Step 6: Test and Iterate

Visit your site with a browser set to Spanish, German, French, Japanese, or Portuguese. You should see translated content and localized prices. Use the SiteLocaleAI dashboard to monitor translation quality and adjust glossaries for industry-specific terms.

Why This Approach Works for B2B SaaS

  • Speed: No i18n refactoring. One script tag covers your entire app.
  • Control: Self-hosted with your own LLM keys—no vendor lock-in.
  • SEO: Pre-rendered pages ensure search engines index your localized content.
  • Pricing: Psychological rounding per currency increases conversions.
  • Flexibility: Works with any framework, including WordPress and Shopify.

For more details, check the SiteLocaleAI documentation.

Conclusion

Adding five languages to your B2B SaaS doesn't have to be a six-month project. With SiteLocaleAI, you can go international in an afternoon—just one script tag, your LLM API key, and a CLI command for SEO. Ready to expand your reach?

Try SiteLocaleAI today and launch your multilingual SaaS in minutes.