1
0
Fork 0

feat: Added jargon to translations

This commit is contained in:
Joost De Cock 2019-10-12 13:03:19 +02:00
parent f7693a6c25
commit e8648bc80a
3 changed files with 88 additions and 2 deletions

View file

@ -8,13 +8,15 @@ const languageCodes = ['en', 'de', 'es', 'fr', 'nl']
const imports = { en, de, es, fr, nl }
const plugin = {}
const jargon = {}
const strings = {}
const languages = {}
for (let l of languageCodes) {
strings[l] = imports[l].strings
jargon[l] = imports[l].jargon
plugin[l] = imports[l].plugin
languages[l] = strings[l]['i18n.' + l]
}
export { strings, languages, plugin }
export { strings, languages, plugin, jargon }

View file

@ -17,6 +17,8 @@ import plugin from './plugin/'
import settings from './settings.yml'
import homepage from './homepage.yaml'
import jargonFile from './jargon.yml'
const topics = {
account,
app,
@ -68,7 +70,13 @@ for (let topic of Object.keys(topics)) {
}
}
const jargon = {}
for (let entry in jargonFile) {
jargon[jargonFile[entry].term] = jargonFile[entry].description
}
export default {
strings,
plugin
plugin,
jargon
}

View file

@ -0,0 +1,76 @@
basting:
term: basting
description: "See <a href='/docs/sewing/basting/'>Basting</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
coverlock:
term: coverlock
description: "See <a href='/docs/sewing/coverlock/'>Coverlock</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
cutting:
term: cutting
description: "See <a href='/docs/sewing/cutting/'>Cutting</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
darts:
term: darts
description: "See <a href='/docs/sewing/darts/'>Darts</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
doubleWeltPockets:
term: double welt pockets
description: "See <a href='/docs/sewing/double-welt-pockets/'>Double welt pockets</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
ease:
term: ease
description: "See <a href='/docs/sewing/ease/'>Ease</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
fabricGrain:
term: fabric grain
description: "See <a href='/docs/sewing/fabric-grain/'>Fabric grain</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
goodSidesTogether:
term: good sides together
description: "See <a href='/docs/sewing/good-sides-together/'>Good sides together</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
hemming:
term: hemming
description: "See <a href='/docs/sewing/hemming/'>Hemming</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
jersey:
term: jersey
description: "See <a href='/docs/sewing/jersey/'>Jersey</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
knitBinding:
term: knit binding
description: "See <a href='/docs/sewing/knit-binding/'>Knit binding</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
knitFabric:
term: knit fabric
description: "See <a href='/docs/sewing/knit-fabric/'>Knit fabric</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
pinning:
term: pinning
description: "See <a href='/docs/sewing/pinning/'>Pinning</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
rayon:
term: rayon
description: "See <a href='/docs/sewing/rayon/'>Rayon</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
sa:
term: seam allowance
description: "See <a href='/docs/sewing/seam-allowance/'>Seam allowance</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
serger:
term: serger
description: "See <a href='/docs/sewing/serger/'>Serger</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
topstitching:
term: topstitching
description: "See <a href='/docs/sewing/topstitching/'>Topstitching</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
trimming:
term: trimming
description: "See <a href='/docs/sewing/trimming/'>Trimming</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
twinNeedle:
term: twin needle
description: "See <a href='/docs/sewing/twin-neelde/'>Twin needle</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
zigZag:
term: zig-zag stitch
description: "See <a href='/docs/sewing/zig-zag-stitch/'>Zig-zag stitch</a> in the <a href='/docs/sewing'>Sewing documentation</a>"
freesewing:
term: freesewing
description: "<b>FreeSewing</b> is an open source platform for made-to-measure sewing patterns"
recipe:
term: recipe
description: "A <b>Recipe</b> contains all the information required to re-create your pattern"
patternOptions:
term: pattern options
description: "The <b>pattern options</b> allow you to customize the design of the pattern"
draftSettings:
term: draft settings
description: "The <b>draft settings</b> give you control of how a pattern is generated"
patrons:
term: patrons
description: "Patrons support Freesewing financially. They are loyal supporters who ensure a sustainable future for freesewing.org, our code, our patterns, and our community."