All Projects → gunjam → marko-i18next

gunjam / marko-i18next

Licence: Apache-2.0 license
Components to use i18next in Marko templates.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to marko-i18next

movies
Real world isomorphic application for movies search, based on Webpack 5 / Express / React 17 + Redux-Saga / Bootstrap 4.6 + CSS Modules / i18next / SSR
Stars: ✭ 20 (+53.85%)
Mutual labels:  i18next
nextjs-movie-browser
A NextJS implementation of the themoviedb.org website
Stars: ✭ 45 (+246.15%)
Mutual labels:  i18next
i18next-http-backend
i18next-http-backend is a backend layer for i18next using in Node.js, in the browser and for Deno.
Stars: ✭ 270 (+1976.92%)
Mutual labels:  i18next
React I18next
Internationalization for react done right. Using the i18next i18n ecosystem.
Stars: ✭ 6,942 (+53300%)
Mutual labels:  i18next
marko-router5
Flexible and powerful routing for MarkoJS
Stars: ✭ 28 (+115.38%)
Mutual labels:  markojs
node-taglib2
A rewrite of the now unmaintained node-taglib
Stars: ✭ 40 (+207.69%)
Mutual labels:  taglib
react-native-boilerplate-starter-app
📱🚀A POWERFUL React Native starter kit to bootstrap the start of your mobile app development
Stars: ✭ 202 (+1453.85%)
Mutual labels:  i18next
i18next-json-sync
Keep i18next JSON resource files in sync
Stars: ✭ 44 (+238.46%)
Mutual labels:  i18next
i18next-fs-backend
i18next-fs-backend is a backend layer for i18next using in Node.js and for Deno to load translations from the filesystem.
Stars: ✭ 67 (+415.38%)
Mutual labels:  i18next
react-i18next-phraseapp
Library support to use react-i18next with the Phrase In-Context Editor - DEPRECATED
Stars: ✭ 14 (+7.69%)
Mutual labels:  i18next
I18n Ally
🌍 All in one i18n extension for VS Code
Stars: ✭ 1,931 (+14753.85%)
Mutual labels:  i18next
packtag
A JSP Taglib for delivering minified, combined and gzip-compressed resources (JavaScript and CSS).
Stars: ✭ 22 (+69.23%)
Mutual labels:  taglib
ad localize
ADLocalize is a simple way to manage your localization files. Supported wording sources : CSVs and Google Sheets. Localization file generation available for iOS, Android, JSON (i18next), YAML and Java properties
Stars: ✭ 22 (+69.23%)
Mutual labels:  i18next
i18next-scanner-typescript
Typescript transform for i18next-scanner
Stars: ✭ 21 (+61.54%)
Mutual labels:  i18next
i18next-fetch-backend
Fetch i18next translations with the fetch API
Stars: ✭ 39 (+200%)
Mutual labels:  i18next
web-starter-kit
An opinionated starter kit with styled-system, graphql-hooks, mobx and nextjs (PWA)
Stars: ✭ 17 (+30.77%)
Mutual labels:  i18next
htaglib
Haskell bindings for TagLib, an audio meta-data library
Stars: ✭ 20 (+53.85%)
Mutual labels:  taglib
gatsby-i18n
Gatsby plugin that provides i18n support
Stars: ✭ 25 (+92.31%)
Mutual labels:  i18next
niki
Media Player, DLNA, Music, Video and Streaming
Stars: ✭ 14 (+7.69%)
Mutual labels:  taglib
website
The Algorithms website providing GitHub's largest open-source algorithm library.
Stars: ✭ 616 (+4638.46%)
Mutual labels:  i18next

i18next Marko tag lib

This tag lib allows you to access the i18next t() function from your request object (if for example you're using i18next Express middleware) in your templates if streaming to a response using the template.render() function:

template.render({}, res);

Installing

npm install marko-i18next

Usage

Example locales file (namespace.json):

{
  "message": "Hi guys",
  "interpolatedMessage": "Hi {{name}}",
  "submit": "Submit form",
  "nameSubmit": "Submit form for {{name}}"
}

<i18n-message/> component

In a Marko template:

<p>
  <i18n-message key="namespace:message"/>
</p>

With interpolated strings:

<p>
  <i18n-message key="namespace:interpolatedMessage" name="Hammond Eggs"/>
</p>

<i18n-var/> compile time variable

You can also add the translation function to your template by including <i18n-var/> at the top of the file. This is useful for assigning i18n messages to attributes:

<i18n-var/>

<form>
  ...
  <input type="submit" value=i18n('namespace:submit')/>
</form>

With interpolated strings:

<i18n-var/>

<form>
  ...
  <input type="submit" value=i18n('namespace:nameSubmit', {name: 'George'})/>
</form>

Contributing

Do a pull request, I'll have a look!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].