@farmerjoeorg/farmerjoe-language

中文文档
1.28.0发布于 2026/11/11CommonJS近 30 天下载 2175

A central repository for the language files used in farmerjoe

原始使用文档
文档目录7 节
  1. Installation
  2. Projects using farmerjoe-language
  3. How to add a word to translation files
  4. CrowdIn Integration
  5. NPM
  6. PRs
  7. Adding new languange

farmerJoe languages

A central repository for the language files used in farmerjoe

Installation

yarn add @farmerjoeorg/farmerjoe-language

Projects using farmerjoe-language

How to add a word to translation files

Add farmerjoe-eu-dev.json (ask in the team to get it) to the root of the project. Write the object you want to translate and add to translation files in srcTranslation.json. Run command node ./addTranslation.js [the file you want to add translations] for example node ./addTranslation.js farmerjoe.json

CrowdIn Integration

The translations are done using the CrowdIn platform. Currently, its use is suspended.

NPM

The package is also available on NPM. This package is used by farmerjoe-functions when deploying to firebase functions.

PRs

After a PR has been approved, please bump the package version manually. The release to NPM will be done automatically. You can then point all affected platforms (mobile, web, functions, ...) to the new version found on NPM.

Adding new languange

  1. Add the new language iso code to the supportedLanguages.json and index.js;
  2. Call the script addNewLanguage.js, in order to translate:
node ./addNewLanguage.js [new language]
  1. Modify the moment.js by removing the following content:
;(function (global, factory) {
   typeof exports === 'object' && typeof module !== 'undefined'
       && typeof require === 'function' ? factory(require('../moment')) :
   typeof define === 'function' && define.amd ? define(['../moment'], factory) :
   factory(global.moment)
}(this, (function (moment) { 'use strict';

    //! moment.js locale configuration

    var bg = moment.defineLocale('bg',

then, export it as a module:

export default {
    months...
}

版本与发布记录

@farmerjoeorg/farmerjoe-language 共发布 333 个版本,首次发布于 2019/02/22;过去 12 个月发布了 43 个版本。

版本发布日期距今
1.28.0latest2026/11/113 天前
1.27.12026/11/0310 天前
1.27.02026/11/0211 天前
1.26.02026/10/2024 天前
1.25.02026/07/104 个月前
1.24.22026/06/045 个月前

关于 @farmerjoeorg/farmerjoe-language 的常见问题

@farmerjoeorg/farmerjoe-language 是什么?

A central repository for the language files used in farmerjoe

如何安装 @farmerjoeorg/farmerjoe-language?

在项目目录运行 npm install @farmerjoeorg/farmerjoe-language,或使用 pnpm add / yarn add / bun add。

@farmerjoeorg/farmerjoe-language 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/farmerjoeorg__farmerjoe-language 是否存在。

@farmerjoeorg/farmerjoe-language 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@farmerjoeorg/farmerjoe-language 可以商用吗?

@farmerjoeorg/farmerjoe-language 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@farmerjoeorg/farmerjoe-language 的下载量有多少?

根据 npm 官方下载统计,@farmerjoeorg/farmerjoe-language 在 2026/10/15 – 2026/11/13 这 30 天内被下载 2,175 次,日均约 73 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@farmerjoeorg/farmerjoe-language 还在维护吗?

最新版本 1.28.0 发布于 2026/11/11(3 天前);至今共发布 333 个版本,其中过去 12 个月发布了 43 个;首次发布于 2019/02/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。