machinetranslate.org
Open information and community for machine translation (by machinetranslate)
jquery-i18next
jQuery-i18next is a jQuery based Javascript internationalization library on top of i18next. It helps you to easily internationalize your web applications. (by i18next)
machinetranslate.org | jquery-i18next | |
---|---|---|
3 | 1 | |
69 | 167 | |
- | -0.6% | |
9.4 | 2.8 | |
6 days ago | 12 months ago | |
HTML | HTML | |
Creative Commons Attribution Share Alike 4.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
machinetranslate.org
Posts with mentions or reviews of machinetranslate.org.
We have used some of these posts to build our list of alternatives
and similar projects.
-
ModernMT languages: Tosk Albanian vs Albanian
I've also raised an issue here: https://github.com/machinetranslate/machinetranslate.org/issues/466
-
Issues in MT integrations in TMSes
> open resources and communities for trading gotchas and workarounds, like machinetranslate.org
-
A way to machine translate a .xml file?
At Machine Translate, we are working on an article which shows CAT tools and TMS (translation management systems) support for commercial MT engines. You can check it out here! https://github.com/machinetranslate/machinetranslate.org/pull/269/files
jquery-i18next
Posts with mentions or reviews of jquery-i18next.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-02.
-
The progressive guide to jQuery internationalization (i18n) using i18next
const getGreetingTime = () => { const split_afternoon = 12; // 24hr time to split the afternoon const split_evening = 17; // 24hr time to split the evening const currentHour = moment().hour(); if (currentHour >= split_afternoon && currentHour <= split_evening) { return 'afternoon'; } else if (currentHour >= split_evening) { return 'evening'; } return 'morning'; } const rerender = () => { // start localizing, details: // https://github.com/i18next/jquery-i18next#usage-of-selector-function $('body').localize(); $('#footerMessage').localize({ context: getGreetingTime() }); $('title').text($.t('head.title')) $('meta[name=description]').attr('content', $.t('head.description')) } const locizeOptions = { projectId: '8d751621-323e-4bda-94c8-7d2368102e62', apiKey: '302aca54-2ea8-4b9f-b5f0-df1369c59427' // YOU should not expose your apps API key to production!!! }; i18next.on('editorSaved', rerender); // used for the inContext editor $(function () { const locizeBackend = new i18nextLocizeBackend(locizeOptions, (err, opts, lngs) => { if (err) return console.error(err); // use plugins and options as needed, for options, detail see // https://www.i18next.com i18next // locize-editor // InContext Editor of locize .use(locize.locizePlugin) // locize-lastused (do not use this in production) // sets a timestamp of last access on every translation segment on locize // -> safely remove the ones not being touched for weeks/months // https://github.com/locize/locize-lastused .use(locizeLastUsed) // i18next-locize-backend // loads translations from your project, saves new keys to it (saveMissing: true) // https://github.com/locize/i18next-locize-backend .use(locizeBackend) // detect user language // learn more: https://github.com/i18next/i18next-browser-languageDetector .use(i18nextBrowserLanguageDetector) // init i18next // for all options read: https://www.i18next.com/overview/configuration-options .init({ ...opts, debug: true, fallbackLng: 'en', backend: locizeOptions, locizeLastUsed: locizeOptions, saveMissing: true // interpolation: { // // legacy usage // format: (value, format, lng) => { // if (value instanceof Date) { // return moment(value).locale(lng).format(format); // } // return value; // } // } }, (err, t) => { if (err) return console.error(err); // new usage i18next.services.formatter.add('LLLL', (value, lng, options) => { return moment(value).locale(lng).format('LLLL'); }); // for options see // https://github.com/i18next/jquery-i18next#initialize-the-plugin jqueryI18next.init(i18next, $, { useOptionsAttr: true }); // fill language switcher Object.keys(lngs).map((lng) => { const opt = new Option(lngs[lng].nativeName, lng); if (lng === i18next.resolvedLanguage) { opt.setAttribute("selected", "selected"); } $('#languageSwitcher').append(opt); }); let languageChangedCounter = 0; $('#languageSwitcher').change((a, b, c) => { const chosenLng = $(this).find("option:selected").attr('value'); i18next.changeLanguage(chosenLng, () => { rerender(); // language changed message languageChangedCounter++; $('#languageChangedNotification').localize({ count: languageChangedCounter }) if (languageChangedCounter === 1) { $('#languageChangedNotification').show(); } }); }); rerender(); $('#loader').hide(); $('#content').show(); }); }); });
What are some alternatives?
When comparing machinetranslate.org and jquery-i18next you can also consider the following projects:
localize - Uni Localize
i18next-browser-languageDetector - language detector used in browser environment for i18next
bitextor - Bitextor generates translation memories from multilingual websites
i18next-http-backend - i18next-http-backend is a backend layer for i18next using in Node.js, in the browser and for Deno.
writing-style-transfer - writing style transfer using cycle gan
moment - Parse, validate, manipulate, and display dates in javascript.
CTranslate2 - Fast inference engine for Transformer models
infinite-scroll - 📜 Automatically add next page