New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

intlayer

Package Overview
Dependencies
Maintainers
0
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intlayer - npm Package Compare versions

Comparing version 4.1.11 to 5.0.0

23

dist/types/index.d.ts

@@ -1,13 +0,18 @@

import type { Locales } from '@intlayer/config/client';
import { type TranslationContent, type LanguageContent } from '@intlayer/core';
export interface IConfigLocales<Content> {
import { Locales } from '@intlayer/config/client';
import { type TranslationContent, type NestedContent, type DictionaryKeys, type TranslationContentState, type Dictionary as DictionaryCore, type ValidDotPathsFor } from '@intlayer/core';
interface IConfigLocales<Content> {
}
type ConfigLocales = keyof IConfigLocales<unknown>;
export type CustomizableLanguageContent<Content = string> = ConfigLocales extends never ? LanguageContent<Content> : IConfigLocales<Content>;
export declare const t: <Content = string>(content?: CustomizableLanguageContent<Content>) => TranslationContent<Content>;
export declare const getTranslationContent: <Content = string>(languageContent: CustomizableLanguageContent<Content>, locale: Locales) => Content;
export type { LanguageContent, QuantityContent, ContentValue, DeclarationContent, } from '@intlayer/core';
export { getLocaleName, enu, getEnumerationContent, getLocaleLang, getHTMLTextDir, getPathWithoutLocale, getMultilingualUrls, getLocalizedUrl, localeList, } from '@intlayer/core';
type CustomizableLanguageContent<Content = string> = ConfigLocales extends never ? TranslationContentState<Content> : IConfigLocales<Content>;
declare const t: <Content = string>(content: CustomizableLanguageContent<Content>) => TranslationContent<Content>;
declare const getTranslationContent: <Content = string>(languageContent: CustomizableLanguageContent<Content>, locale: Locales) => Content;
declare const nest: <K extends DictionaryKeys>(dictionaryKey: K, path?: ValidDotPathsFor<K>) => NestedContent<K>;
type Dictionary<T = undefined> = DictionaryCore<T, true>;
/**
* @deprecated Use `Dictionary<T>` instead.
*/
type DeclarationContent<T> = Dictionary<T>;
export { Locales, type Dictionary, type DeclarationContent, type IConfigLocales, t, getTranslationContent, nest, };
export { type CustomIntlayerConfig as IntlayerConfig, type LocalesValues, getConfiguration, } from '@intlayer/config/client';
export { Locales } from '@intlayer/config/client';
export { type LanguageContent, type ContentNode, getLocaleName, enu, cond, md, getEnumeration, getDictionary, getIntlayer, getIntlayerAsync, getTranslation, getNesting, getLocaleLang, getHTMLTextDir, getPathWithoutLocale, getMultilingualUrls, getLocalizedUrl, localeList, } from '@intlayer/core';
//# sourceMappingURL=index.d.ts.map
{
"name": "intlayer",
"version": "4.1.11",
"version": "5.0.0",
"private": false,

@@ -61,5 +61,5 @@ "description": "Manage internationalization i18n in a simple way, through TypeScript, declaration file, declare your multilingual content every where in your code.",

"dependencies": {
"@intlayer/cli": "4.1.11",
"@intlayer/core": "^4.1.11",
"@intlayer/config": "4.1.11"
"@intlayer/config": "5.0.0",
"@intlayer/cli": "5.0.0",
"@intlayer/core": "^5.0.0"
},

@@ -80,9 +80,9 @@ "devDependencies": {

"@utils/ts-config": "1.0.4",
"@utils/tsup-config": "1.0.4",
"@utils/ts-config-types": "1.0.4"
"@utils/ts-config-types": "1.0.4",
"@utils/tsup-config": "1.0.4"
},
"peerDependencies": {
"@intlayer/cli": "4.1.11",
"@intlayer/config": "4.1.11",
"@intlayer/core": "^4.1.11"
"@intlayer/cli": "5.0.0",
"@intlayer/config": "5.0.0",
"@intlayer/core": "^5.0.0"
},

@@ -89,0 +89,0 @@ "engines": {

@@ -19,3 +19,3 @@ <div align="center">

# intlayer: Manage Multilingual Content Declaration (i18n)
# intlayer: Manage Multilingual Dictionary (i18n)

@@ -92,3 +92,3 @@ **Intlayer** is a suite of packages designed specifically for JavaScript developers. It is compatible with frameworks like React, Next.js, and Express.js.

```tsx filePath="src/ClientComponent/index.content.ts" codeFormat="typescript"
import { type DeclarationContent, t } from "intlayer";
import { t, type Dictionary } from "intlayer";

@@ -112,3 +112,3 @@ const clientComponentContent = {

},
} satisfies DeclarationContent;
} satisfies Dictionary;

@@ -115,0 +115,0 @@ export default clientComponentContent;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc