Generate Lorem Ipsum and placeholder text in multiple languages.
$ npm install lorem-intl
const { loremIntl } = require("lorem-intl");
loremIntl.text();
//=> 'Lorem ipsum dolor sit ...'
loremIntl.mandarin();
//=> '在一个充满科 ...'
loremIntl.spanish();
//=> 'El rápido zorro marrón ...'
const myLoremIntl = loremIntl.create({
defaultLanguage: "english",
defaultSize: "short",
});
myLoremIntl.text();
//=> 'The quick brown fox jumps ...'
Get the default placeholder text.
Create a new instance of loremIntl
with a custom config.
Type: Config
Default: { defaultSize: 'medium', defaultLanguage: 'latin' }
Get a placeholder text by language.
Type: Size
Default: 'medium'
Placeholder text are available for the following languages:
-
arabic
-
english
-
hindi
-
latin
-
mandarin
-
spanish