Skip to content

Swedish ​

Swedish is one of the many supported locales in Faker. It uses the language code sv and is available as fakerSV.

Language data ​

KeyValue
NameSwedish
Local NameSvenska
Languagesv
ScriptLatn
Directionltr

Usage ​

A few commonly localized methods are shown below. Click the refresh button to see more random examples. Not all methods are localized in all locales.

ts
import { fakerSV } from '@faker-js/faker';
// const { fakerSV } = require('@faker-js/faker'); // CJS

// Commonly localized methods:
fakerSV.person.fullName();
fakerSV.location.streetAddress();
fakerSV.location.city();
fakerSV.location.state();
fakerSV.location.zipCode();
fakerSV.phone.number();
fakerSV.commerce.productName();
fakerSV.internet.email();
fakerSV.internet.url();
fakerSV.date.month();
fakerSV.date.weekday();
fakerSV.word.noun();
fakerSV.word.verb();
fakerSV.company.name();

// Non-localized methods work as normal:
fakerSV.number.int();

Released under the MIT License.