Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@inlang/paraglide-js

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inlang/paraglide-js - npm Package Compare versions

Comparing version 1.7.3 to 1.8.0

dist/compiler/aliases.d.ts

22

dist/compiler/compile.d.ts

@@ -1,3 +0,14 @@

import { ProjectSettings, Message } from '@inlang/sdk';
import { ProjectSettings, Message, LanguageTag } from '@inlang/sdk';
export type CompileOptions = {
messages: Readonly<Message[]>;
settings: ProjectSettings;
projectId?: string | undefined;
/**
* The file-structure of the compiled output.
*
* @default "regular"
*/
outputStructure?: "regular" | "message-modules";
};
/**

@@ -12,6 +23,5 @@ * A compile function takes a list of messages and project settings and returns

*/
export declare const compile: (args: {
messages: Readonly<Message[]>;
settings: ProjectSettings;
projectId?: string | undefined;
}) => Promise<Record<string, string>>;
export declare const compile: (args: CompileOptions) => Promise<Record<string, string>>;
export declare function getFallbackMap(languageTags: LanguageTag[], sourceLanguageTag: LanguageTag): {
[k: string]: string | undefined;
};

@@ -0,6 +1,23 @@

import { Params } from './paramsType.js';
import { LanguageTag, Message } from '@inlang/sdk';
type Resource = {
/**
* The original message
*/
source: Message;
/**
* The parameters needed for this message
*/
params: Params;
/**
* The index-message function for this message
*/
index: string;
[languageTag: string]: string;
/**
* The message-function for each language
*/
translations: {
[languageTag: string]: string;
};
};

@@ -20,3 +37,3 @@ /**

*/
export declare const compileMessage: (message: Message, availableLanguageTags: LanguageTag[], sourceLanguageTag: LanguageTag) => Resource;
export declare const compileMessage: (message: Message, fallbackMap: Record<LanguageTag, LanguageTag | undefined>, output?: "regular" | "message-modules") => Resource;
export {};
{
"name": "@inlang/paraglide-js",
"type": "module",
"version": "1.7.3",
"version": "1.8.0",
"license": "Apache-2.0",

@@ -65,10 +65,10 @@ "publishConfig": {

"vitest": "0.34.3",
"@inlang/env-variables": "0.2.0",
"@inlang/cross-sell-sherlock": "0.0.4",
"@inlang/env-variables": "0.2.0",
"@inlang/sdk": "0.34.3",
"@inlang/plugin-message-format": "2.2.0",
"@inlang/language-tag": "1.5.1",
"@inlang/telemetry": "0.3.28",
"@lix-js/client": "1.4.0",
"@inlang/sdk": "0.34.3",
"@lix-js/fs": "1.0.0",
"@inlang/language-tag": "1.5.1"
"@inlang/plugin-message-format": "2.2.0"
},

@@ -75,0 +75,0 @@ "exports": {

@@ -415,4 +415,1 @@ [<img src="https://cdn.jsdelivr.net/gh/opral/monorepo@latest/inlang/source-code/paraglide/paraglide-js/assets/header.png" alt="Dead Simple i18n. Typesafe, Small Footprint, Treeshsakeable Messages, IDE Integration, Framework Agnostic" width="10000000px" />](https://www.youtube.com/watch?v=-YES3CCAG90)

# Pricing
<doc-pricing></doc-pricing>

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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