0.6.3 • Published 1 year ago

@agribank/i18n v0.6.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.6.2

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago