0.6.3 • Published 8 months ago

@agribank/i18n v0.6.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

I18n

agribank apps use react-i18next for i18, and this package includes the base language packs that other apps can use.

Types

For a type-safe experience with i18next add this your d.ts file

import "@agribank/i18n/types";

import type YOUR_LANG_PACK from "./locals/[lang]/translation.json";

declare module "i18next" {
	interface AGRIBankTypeOptions {
		defaultNS: "translation"; // or whatever you like
		resources: {
			translation: typeof YOUR_LANG_PACK;
		};
	}
}

As you can see, instead of CustomTypeOptions you can use AGRIBankTypeOptions to add your types on top of this package.

0.6.3

8 months ago

0.6.2

9 months ago

0.6.1

9 months ago

0.6.0

9 months ago

0.5.0

9 months ago

0.4.0

9 months ago

0.3.0

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.0

10 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago