Multilingual content across six languages
Names, geography and text generated in the six output-enabled showcase languages; Japanese is a documented exception.
- Languages
deuengfraitaporspa- Formats
csv
Recipe
gbddl 1
language(eng, deu, fra, ita, spa, por)
table multilingual_content rows 21 (
id int64 autoincrement primarykey
full_name text same(person) fullName()
first_name text same(person) firstName()
last_name text same(person) lastName()
city text same(geo) city()
country text same(geo) country()
sentence text sentence(minWords: 3, maxWords: 8)
question text question(maxWords: 6)
quote text quote(maxWords: 8)
paragraph text paragraph(minWords: 10, maxWords: 25)
month text monthName()
weekday text weekdayName()
fixed_pt text language(por) sentence(maxWords: 5)
)
output csv
This is the exact recipe.gbddl committed to the repository. Copy it, or download the raw source.
About this recipe
Multilingual content
A single-table recipe that generates names, geography and text in six showcase
languages: English, German, French, Italian, Spanish and Brazilian Portuguese.
Japanese (jpn) is a documented exception: it is not output-enabled in the
catalog, so it is exercised by its own enablement task rather than by this
recipe (see the showcase PLAN.md Decisions).
What it demonstrates
- Multiple languages — the recipe header declares
language(eng, deu, fra, ita, spa, por), so each row draws one language and every localized column is written in it. - Localized names and places —
full_name,first_nameandlast_nameshare asame(person)group andcityandcountryasame(geo)group, all in the row's language. - Localized text —
sentence,question,quote,paragraph,monthandweekdayare catalog-backed text in the row's language. - Column language override —
fixed_ptpins one column to Portuguese with alanguage(por)clause.
Run it
Submit the recipe body to POST /api/v1/jobs?input_format=gbddl, or paste it
into Chef, to generate the data. The repository's local runner (run by
task test) also generates it and verifies its output.
The recipe outputs one CSV table file, multilingual_content.csv, holding
twenty-one rows across the six enabled languages.
Guarantees
Every row is written in one of the six declared languages, names are coherent per person, and places per row. Unicode is preserved. Content is synthetic.
Tested features
Smart types, physical types, rules and formats this recipe exercises and verifies.
fullNamefirstNamelastNamecitycountrysentencequestionquoteparagraphmonthNameweekdayNamesame:personsame:geographylanguage:recipelanguage:columnautoincrementprimary-key