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

@payloadcms/translations

Package Overview
Dependencies
Maintainers
4
Versions
358
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@payloadcms/translations - npm Package Compare versions

Comparing version 3.0.0-alpha.69 to 3.0.0-alpha.70

4

dist/types.d.ts

@@ -30,3 +30,3 @@ import type { Locale } from 'date-fns';

export type I18nOptions = {
fallbackLanguage?: string;
fallbackLanguage?: AcceptedLanguages;
supportedLanguages?: SupportedLanguages;

@@ -48,3 +48,3 @@ translations?: Partial<{

context: 'api' | 'client';
language?: AcceptedLanguages;
language: AcceptedLanguages;
}) => Promise<I18n>;

@@ -51,0 +51,0 @@ export type LanguagePreference = {

@@ -116,3 +116,3 @@ import { importDateFNSLocale } from '../importDateFNSLocale.js';

}
export const initI18n = memoize(async ({ config, context, language = 'en' }) => {
export const initI18n = memoize(async ({ config, context, language = config.fallbackLanguage }) => {
const translations = getTranslationsByContext(config.supportedLanguages[language], context);

@@ -119,0 +119,0 @@ const { t, translations: mergedTranslations } = initTFunction({

{
"name": "@payloadcms/translations",
"version": "3.0.0-alpha.69",
"version": "3.0.0-alpha.70",
"homepage": "https://payloadcms.com",

@@ -5,0 +5,0 @@ "repository": {

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