0.4.1 • Published 6 years ago

mithril-i18next v0.4.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

mithril-i18next

i18next integration for Mithril.

The only thing this adds currently, is a Trans component, inspired by the similar component in react-i18next. Please check the docs there for more details.

The main difference from react-i18next is that there is no I18nextProvider here. It simply uses the global i18next.

Trans component

Example use:

m(Trans, { i18nKey: 'foo' },
	'Please ',
	m(a, { href: '#' },
		'click here'
	),
	' to follow the link.'
)

Changelog

0.4.1 Fixed should not alter children of non-fragments.

0.4.0 Fixed recursing inside fragments.

0.3.0 Fixed recursing inside component children.

0.2.1 Fixed isComponent check.

0.2.0 Fixed text node handling.

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago