Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@ditsmod/i18n

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ditsmod/i18n

Ditsmod module to integration with i18n (internalization)

latest
Source
npmnpm
Version
2.13.1
Version published
Weekly downloads
14
Maintainers
1
Weekly downloads
 
Created
Source

About the project

Ditsmod module to support i18n (internalization).

Settings

Recommended directory tree for current module:

└── modulename
    ├── ...
    ├── locales
    │   ├── current
    │   │   ├── _base-en
    │   │   ├── de
    │   │   ├── fr
    │   │   ├── pl
    │   │   ├── uk
    │   │   └── index.ts
    │   └── imported
    │       ├── one
    │       │   ├── de
    │       │   ├── fr
    │       │   ├── pl
    │       │   └── uk
    │       ├── two
    │       │   ├── de
    │       │   ├── fr
    │       │   ├── pl
    │       │   └── uk
    │       └── index.ts

Where _base-en - this is the base translation from which all other translations for the current module branch. And one and two this are external modules that alsow has @ditsmod/i18n integration. File index.ts has translation groups:

import { TranslationGroup } from '@ditsmod/i18n';

import { Common } from './en/common.js';
import { CommonUk } from './uk/common.js';
import { Errors } from './en/errors.js';
import { ErrorsUk } from './uk/errors.js';

export const current: TranslationGroup[] = [
  [Common, CommonUk],
  [Errors, ErrorsUk],
];

Keywords

ditsmod

FAQs

Package last updated on 20 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts