使用场景

了解 Localingos 如何在不同场景中保留您的占位符

应用程序/网站本地化

无需人工操作,轻松面向全球发布

React i18n 示例

原始
{
  "welcome": "Welcome back, ${userName}!",
  "notifications": "You have {count} new {count, plural, one {message} other {messages}}",
  "checkout": "Total: %s items for $%.2f"
}
已翻译
// Spanish translation - placeholders preserved
{
  "welcome": "¡Bienvenido de nuevo, ${userName}!",
  "notifications": "Tienes {count} {count, plural, one {mensaje nuevo} other {mensajes nuevos}}",
  "checkout": "Total: %s artículos por $%.2f"
}
占位符已保留

交易消息

带动态变量的电子邮件/短信

电子邮件模板示例

原始
const emailTemplate = {
  subject: "Your order #${orderId} has shipped!",
  body: "Hi ${customerName}, your order of ${itemCount} items will arrive on ${deliveryDate}."
};
已翻译
// French translation - variables intact
const emailTemplate = {
  subject: "Votre commande #${orderId} a été expédiée !",
  body: "Bonjour ${customerName}, votre commande de ${itemCount} articles arrivera le ${deliveryDate}."
};
占位符已保留

开发者工具

i18n 字符串集的安全自动化

API 响应示例

原始
// Original API strings
{
  "error.validation": "Field '%s' is required",
  "success.created": "Created %d records in %s",
  "info.progress": "Processing... {progress}% complete"
}
已翻译
// German translation - format specifiers preserved
{
  "error.validation": "Feld '%s' ist erforderlich",
  "success.created": "%d Datensätze in %s erstellt",
  "info.progress": "Verarbeitung... {progress}% abgeschlossen"
}
占位符已保留