awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
aralroca avatar

aralroca/next-translate

0
View on GitHub↗
2,741 星标·205 分支·JavaScript·MIT·7 次浏览

Next Translate

Next-translate 是一个专为 Next.js 应用设计的本地化框架,通过服务器端集成和构建时优化来管理多语言内容。它提供了一套全面的实用程序,用于将翻译后的字符串注入 React 组件,使开发者能够在统一的架构内处理动态内容、复数形式和特定于区域的格式化。

该库的特色在于通过选择性资源加载来优化应用性能。它在构建过程中解析翻译文件以生成页面特定的包,并支持在运行时按需异步获取翻译命名空间。这种方法确保了每个应用部分仅加载必要的内容,有效地减少了初始客户端负载。

除了基本的文本替换外,该系统还支持复杂的格式化需求,包括将 HTML 元素和自定义组件直接嵌入到翻译字符串中。它为组件级本地化提供了钩子,并公开了用于服务器端数据获取或 API 路由的翻译函数,确保在客户端和服务器环境中实现一致的内容交付。

Features

  • Internationalization Libraries - Provides a framework-specific tool for managing localized content, dynamic translation loading, and pluralization within server-rendered React applications.
  • Translation Namespace Loading - Fetches translation resource files on-demand at runtime to optimize memory and reduce initial bundle size.
  • Component Localization - Injects translated strings into components using hooks to support dynamic interpolation and nested keys.
  • Pluralization and Interpolation Engines - Processes translation strings by injecting dynamic data and applying grammatical pluralization rules based on the active locale.
  • Translation Hooks - Provides hooks to access translation functions and current language state within components to update text dynamically.
  • Localization Frameworks - Offers a collection of hooks and utilities for injecting translated strings and handling locale-specific content in web interfaces.
  • Next.js Development - Implements multi-language support in Next.js applications by managing locale-specific content and routing.
  • On-Demand Translation Loading - Fetches translation namespaces on demand as users navigate through different application sections to reduce initial page load times.
  • Server-Side Content Delivery - Retrieves and injects translated strings during server-side rendering or within API routes to ensure consistent language delivery.
  • Build-Time Optimizers - Parses translation files during the build process to generate optimized, page-specific bundles that minimize initial client-side payload.
  • Pluralization Rules - Applies locale-specific rules and custom data formatting to translated text based on numeric values to ensure grammatical accuracy.
  • Complex Text Formatting - Supports complex formatting including grammatical pluralization and embedding custom components directly within translated text.
  • Server-Side Context Injections - Exposes translation functions outside the component lifecycle to allow for consistent content rendering during the server-side request phase.
  • Bundle Optimizers - Loads only the specific translation namespaces required for each page to reduce the total size of the application bundle.
  • Build-Time Localization - Integrates with build processes to automatically load and organize page-specific translation files based on locale configurations.
  • Static Site Performance Optimization - Optimizes performance by splitting translation namespaces into smaller bundles during the build process.

Star 历史

aralroca/next-translate 的 Star 历史图表aralroca/next-translate 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

包含 Next Translate 的精选搜索

收录 Next Translate 的精选合集。
  • 国际化与本地化 (i18n/l10n) 库

Next Translate 的开源替代方案

相似的开源项目,按与 Next Translate 的功能重合度排序。
  • i18next/i18nexti18next 的头像

    i18next/i18next

    8,583在 GitHub 上查看↗

    i18next is a JavaScript localization library and internationalization framework used to translate application text into multiple languages. It functions as a dynamic translation manager that handles translation resources, language detection, and the mapping of unique keys to localized strings. The system features a pluralization and interpolation engine that applies language-specific grammatical rules for numeric counts and injects dynamic variables into strings. It utilizes a plugin-based backend architecture to load and cache translation namespaces from various sources, including remote ser

    JavaScript
    在 GitHub 上查看↗8,583
  • i18next/next-i18nexti18next 的头像

    i18next/next-i18next

    6,158在 GitHub 上查看↗

    next-i18next is an internationalization library that integrates the i18next ecosystem into Next.js applications, supporting both the App Router and Pages Router. It provides locale-aware routing middleware, server-component translation hydration, and a unified translation management system that works across server and client components. The library handles automatic language detection from browser cookies and HTTP Accept-Language headers, persists user language preferences across sessions, and rewrites URLs with locale prefixes for proper routing. It includes a translation hydration framework

    TypeScripti18nextnextnextjs
    在 GitHub 上查看↗6,158
  • amannn/next-intlamannn 的头像

    amannn/next-intl

    4,304在 GitHub 上查看↗

    next-intl is an internationalization framework for Next.js applications. It provides a system for managing translations, localized routing, and ICU message formatting to deliver multilingual content across server and client components. The project distinguishes itself through a focus on developer experience and type safety, utilizing a TypeScript translation validator that generates declaration files from JSON messages for compile-time key validation. It streamlines translation workflows with tools for automatically extracting strings from source code into message files and synchronizing thos

    TypeScriptdate-formattingi18nnext
    在 GitHub 上查看↗4,304
  • i18next/react-i18nexti18next 的头像

    i18next/react-i18next

    10,005在 GitHub 上查看↗

    react-i18next is an internationalization framework that integrates the i18next ecosystem into React applications. It provides a system for replacing hardcoded strings with dynamic keys to support multiple languages across a user interface. The library includes an ICU message formatter for handling complex pluralization and gender-based translations. It features a localization management interface that allows for synchronizing translation keys with remote platforms and performing in-context content editing. The project covers server-side rendering localization with request-isolated translatio

    JavaScripti18ni18nextinternationalization
    在 GitHub 上查看↗10,005
查看 Next Translate 的所有 30 个替代方案→

常见问题解答

aralroca/next-translate 是做什么的?

Next-translate 是一个专为 Next.js 应用设计的本地化框架,通过服务器端集成和构建时优化来管理多语言内容。它提供了一套全面的实用程序,用于将翻译后的字符串注入 React 组件,使开发者能够在统一的架构内处理动态内容、复数形式和特定于区域的格式化。

aralroca/next-translate 的主要功能有哪些?

aralroca/next-translate 的主要功能包括:Internationalization Libraries, Translation Namespace Loading, Component Localization, Pluralization and Interpolation Engines, Translation Hooks, Localization Frameworks, Next.js Development, On-Demand Translation Loading。

aralroca/next-translate 有哪些开源替代品?

aralroca/next-translate 的开源替代品包括: i18next/i18next — i18next is a JavaScript localization library and internationalization framework used to translate application text… i18next/next-i18next — next-i18next is an internationalization library that integrates the i18next ecosystem into Next.js applications,… amannn/next-intl — next-intl is an internationalization framework for Next.js applications. It provides a system for managing… i18next/react-i18next — react-i18next is an internationalization framework that integrates the i18next ecosystem into React applications. It… kazupon/vue-i18n — vue-i18n is an internationalization framework and plugin for Vue.js applications. It serves as a dynamic translation… airbnb/polyglot.js — Polyglot.js is a JavaScript internationalization library and client-side translation framework. It provides a system…