Skip to content

Localized mock data

Generate values that read as German by setting locale to 'de'. The plugin switches the Faker import to fakerDE, so names, addresses, and phone numbers match that region.

kubb.config.ts
typescript
import { 
defineConfig
} from 'kubb/config'
import {
pluginTs
} from '@kubb/plugin-ts'
import {
pluginFaker
} from '@kubb/plugin-faker'
export default
defineConfig
({
input
: './petStore.yaml',
output
: {
path
: './src/gen',
clean
: true },
plugins
: [
pluginTs
(),
pluginFaker
({
locale
: 'de',
}), ], })