1. message-interpolation
The process of formatting messages for internationalization.
message-interpolation
Package: message-interpolation
Created by: Vanilla-IceCream
Last modified: Thu, 15 Dec 2022 01:59:53 GMT
Version: 1.1.0
License: MIT
Downloads: 176
Repository: https://github.com/Vanilla-IceCream/message-interpolation

Install

npm install message-interpolation
yarn add message-interpolation

Message Interpolation

The process of formatting messages for internationalization.

Install

 $ npm i message-interpolation
# or
$ yarn add message-interpolation
# or
$ pnpm i message-interpolation
# or
$ bun add message-interpolation

Usage

 import mi from 'message-interpolation';

/**
 * Named interpolation
 */
const msg = `{say}, World!`;
mi(msg, { say: 'Hello' });
// Hello, World!

/**
 * List interpolation
 */
const alphabet = `{0} B {1} D {2} F G`;
mi(alphabet, ['A', 'C', 'E']);
// A B C D E F G

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin