jed

WebJar for jed

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

jed
Последняя версия

Последняя версия

1.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

jed
WebJar for jed
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/messageformat/Jed

Скачать jed

Имя Файла Размер
jed-1.1.1.pom
jed-1.1.1.jar 54 KB
jed-1.1.1-sources.jar 22 bytes
jed-1.1.1-javadoc.jar 22 bytes
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/jed/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>jed</artifactId>
    <version>1.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/jed/
implementation 'org.webjars.npm:jed:1.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/jed/
implementation ("org.webjars.npm:jed:1.1.1")
'org.webjars.npm:jed:jar:1.1.1'
<dependency org="org.webjars.npm" name="jed" rev="1.1.1">
  <artifact name="jed" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='jed', version='1.1.1')
)
libraryDependencies += "org.webjars.npm" % "jed" % "1.1.1"
[org.webjars.npm/jed "1.1.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Build Status

Jed

Gettext Style i18n for Modern JavaScript Apps

For more info, please visit the docs site at http://messageformat.github.io/Jed.

You sure you don't want something more modern?

Jed is feature complete in my opinion. I am happy to fix bugs, but generally am not interested in adding more to the library.

I also maintain messageformat.js. If you don't specifically need a gettext implementation, I might suggest using MessageFormat instead, as it has better support for plurals/gender and has built-in locale data.

Parsing Gettext Files

Jed doesn't include a Gettext file parser, but several third-party parsers exist that can have their output adapted for Jed.

Node

Just search the npm repository, there are several PO and MO file parsers available.

Browser

Jed Gettext Parser is the only known browser MO file parser, and it also works in Node, and outputs Jed-compatible data directly.

gettext.js and Pomo.js both include browser-compatible PO file parsers.

Todo

  • Build time generation of plural form functions
  • Web interface for building translation sets
  • Code introspection for default values

License

Jed is a member project of the JavaScript Foundation

You may use this software under the MIT License.

Contributor License Agreement

We require all contributions to be covered under the JS Foundation's Contributor License Agreement. This can be done electronically and essentially ensures that you are making it clear that your contributions are your contributions, you have the legal right to contribute and you are transferring the copyright of your works to the JS Foundation.

If you are an unfamiliar contributor to the committer assessing your pull request, it is best to make it clear how you are covered by a CLA in the notes of the pull request. The committer will verify your status.

If your GitHub user id you are submitting your pull request from differs from the e-mail address which you have signed your CLA under, you should specifically note what you have your CLA filed under (and for CCLA that you are listed under your company's authorised contributors).

Author

Credits

A good chunk of sanity checking was done against the gettext.js tests. That was written by:

  • Joshua I. Miller

The sprintf implementation is from:

  • Alexandru Marasteanu <alexaholic [at) gmail (dot] com>

The name

The name jed.js is an homage to Jed Schmidt (https://github.com/jed) the JavaScript community member who is a japanese translator by day, and a "hobbyist" JavaScript programmer by night. Give your kids three character names and they'll probably get software named after them too.

org.webjars.npm

Версии библиотеки

Версия
1.1.1