Search result not found.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

On this page

Locize Docs

Introduction

Using locize

Integration

Guides / Tips & Tricks

More

Which integration option should I use?Do I have to use the locize CDN or can I host / bundle the translations directly?How is locize different from the alternatives?Why do I get “The passed json is nested too deeply.” when consuming the API?Is locize only for developers and translators or is project management within the process too?What is the regular way to update the translation memory?Is there any visibility on project’s level of completion that shows how translators are progressing?Why is my namespace suddenly a flat json?How to change the publish format?Why does my namespace contain an array with a lot of null items?Why is the pricing so complicated?How to change credit card or billing information or download the invoices?How to import translations from a file?How to manually publish a specific version?How to delete or rename a namespace?Why is there such a high download amount?Where do I find the namespace backups?How can a segment/key be copied/moved or renamed?Why a new namespace is created, when I upload a translation file?I want to use the locize CDN, but would like to have a fallback that uses local/bundled translationsIs it possible to integrate multiple projects in the same app/website?Why do I see strange new keys marked as ONE, FEW, MANY, OTHERS?How do I open and edit JSON files?i18n vs. i18nexti18next vs. locizeWord CounterHow to style text within locize?What do I have to consider if my translation texts may contain confidential information?How to translate a file and download the results?

CDN types: Standard vs. Pro

Locize offers two different Content Delivery Network (CDN) infrastructures to serve your translation files. You can choose the one that best fits your project's security, caching, and feature requirements.

Feature

Standard CDN


(Default for new projects)

Pro CDN


(Professional)

Infrastructure Provider BunnyCDN AWS CloudFront
Cost Efficiency For Free (for a very generous amount of monthly downloads) On-Demand
Private Downloads ❌ No (Public only) ✅ Yes
Namespace Backups ❌ No ✅ Yes
Custom Caching ❌ Fixed (1 hour) ✅ Customizable
Domains api.lite.locize.app api.locize.app
Best For Smaller Public websites, smaller SPAs, Open Source projects Professional/Enterprise apps, Private content, Custom caching needs

Standard CDN (BunnyCDN)

The Standard CDN is the new default for all newly created projects. It is powered by BunnyCDN and provides a high-performance, cost-effective solution for most public-facing applications.

Key Characteristics

  • Public Access Only: Translation files published to the Standard CDN are publicly accessible. You cannot restrict access using API keys or private publishing.
  • Fixed Caching Policy: The caching duration (TTL) is fixed at 1 hour. You cannot define a custom Cache-Control max-age.
  • No Native Backups: This CDN type does not support the Namespace Backups feature.

Development Workarounds for Caching

Since the default cache is 1 hour, you might see old translations during active development. You can bypass the cache using the following methods:

1. Using Query Parameters

Append ?cache=no to your fetch URL to force a fresh download:

https://api.lite.locize.app/{{projectId}}/{{version}}/{{lng}}/{{ns}}?cache=no

2. Using i18next-locize-backend

If you are using the official backend plugin, set the reloadInterval or noCache option:

import i18next from "i18next";
import Locize from "i18next-locize-backend";

i18next.use(Locize).init({
  backend: {
    projectId: "[PROJECTID]",
    cdnType: "standard", 
    noCache: true // <-- set strictly for development to bypass cache
  },
  fallbackLng: 'en',
  supportedLngs: ['en', 'de']
});

// Alternative configuration:
// If 'debug: true' is set in i18next, it will also bypass the cache automatically
// even if noCache is not explicitly set.
/*
i18next.use(Locize).init({
  debug: true, 
  backend: {
    projectId: "[PROJECTID]",
    cdnType: "standard"
  },
  // ... other options
});
*/

Pro CDN (AWS CloudFront)

The Pro CDN is the robust infrastructure that locize has used since the beginning. It is based on Amazon CloudFront and is designed for projects requiring advanced control, privacy, and safety nets.

Key Characteristics

  • Private Downloads: Supports Private Publishing. You can restrict access to your translation files so they can only be downloaded with a valid API key.
  • Custom Caching: You can fully configure the Cache-Control max-age per version to optimize for latency or freshness according to your specific needs.
  • Namespace Backups: Automatically retains backups of your namespaces. This allows you to roll back to previous versions if a mistake is published.

Which one should I choose?

Choose Standard if:

  • Your project is a smaller public website, landing page, or open-source project.
  • Your translation data is not sensitive.
  • You do not need to retain historical backups of translation files within the CDN.
  • A 1-hour cache time is acceptable for your production environment.

Choose Pro if:

  • Security is a priority: You need to ensure your translation files are not publicly downloadable (e.g., internal enterprise tools, unreleased products).
  • Risk Management: You rely on Namespace Backups to restore data in case of accidental overwrites.
  • Performance Tuning: You need granular control over browser caching (e.g., setting long cache times for production efficiency).

Changing your CDN Type

You can switch your project between Standard and Pro at any time in your project settings.

Depending on your integration you may need to change the cdnType option in your tools (CLI, i18next-locize-backend, locizify, locizer, etc.) or change the API endpoint.​‌‌‌‌​‌‌​​​‌​​​‌​​​‌‌​‌​‌‌​​​‌​​​‌​​​​‌‌‌​‌​​​​‌​​​‌​​​‌‌​‌‌​‌​​‌‌​‌‌‌‌​​‌‌​​‌​​​​‌‌​​​​‌​​‌‌​‌‌​​​​​‌​‌‌‌​​​‌‌​​‌​​​​‌‌​​‌​‌​​‌‌‌​‌‌​​​‌‌​​‌​‌​​‌‌​‌‌​​​​‌‌​‌‌‌‌​​‌‌‌​​​​​​‌‌​​‌​‌​​‌‌‌​​‌​​​​‌​‌‌‌​​​‌‌‌​​​​​​‌‌‌​​‌​​​‌‌​‌‌‌‌​​‌‌​‌​‌​​​‌‌​​‌​‌​​‌‌​​​‌‌​​‌‌‌​‌​​​​‌​‌​​‌‌​​‌‌​​‌​‌​​‌‌‌​‌​​​​‌‌‌​‌​​​​‌‌​‌​​‌​​‌‌​‌‌‌​​​‌‌​​‌‌‌​​‌‌‌​​‌‌​​​‌​‌‌‌​​​‌‌​​​‌‌​​‌‌​​‌​​​​‌‌​‌‌‌​​​‌​‌​‌​​​​‌‌‌‌​​‌​​‌‌‌​​​​​​‌‌​​‌​‌​​​‌​‌‌‌​​​‌‌​‌​​​​​‌‌​‌​​‌​​‌‌​‌‌‌​​​‌‌‌​‌​​​​​‌​​​‌​​​​‌​‌‌​​​​​‌​​​‌​​​‌‌​‌‌‌​​​​‌​​​‌​​​​‌‌‌​‌​​​​‌​​​‌​​​‌‌​​​‌‌​​‌‌​‌‌​​​​‌‌​‌​​‌​​‌‌​​‌​‌​​‌‌​‌‌‌​​​‌‌‌​‌​​​​​‌​‌‌​‌​​‌‌​‌‌​​​​‌‌​‌‌‌‌​​‌‌​​​‌‌​​‌‌​‌​​‌​​‌‌‌‌​‌​​​‌‌​​‌​‌​​​‌​‌‌​‌​​‌‌​​​​‌​​‌‌‌​​​​​​‌‌‌​​​​​​​‌​‌‌​‌​​‌‌‌​​​​​​‌‌‌​​‌​​​‌‌​‌‌‌‌​​‌‌​‌​‌​​​‌‌​​‌​‌​​‌‌​​​‌‌​​‌‌‌​‌​​​​‌‌‌​​‌‌​​​‌​​​‌​​​​‌​‌‌​​​​​‌​​​‌​​​‌‌​‌‌​​​​​‌​​​‌​​​​‌‌‌​‌​​​​‌​​​‌​​​‌‌​​‌​‌​​‌‌​‌‌‌​​​​‌​​​‌​​​​‌​‌‌​​​​​‌​​​‌​​​‌‌‌​​‌‌​​​‌​​​‌​​​​‌‌‌​‌​​​​‌​​​‌​​​‌‌‌​‌​​​​‌‌‌​​‌​​​‌‌​​​​‌​​‌‌​‌‌‌​​​‌‌‌​​‌‌​​‌‌​‌‌​​​​‌‌​​​​‌​​‌‌‌​‌​​​​‌‌​‌​​‌​​‌‌​‌‌‌‌​​‌‌​‌‌‌​​​​‌​​​‌​​​‌‌‌‌‌​‌​

On this page