Skip to content

Commit 14cca8b

Browse files
committed
Including some portuguese br translations
1 parent afcf5fd commit 14cca8b

File tree

2 files changed

+262
-1
lines changed

2 files changed

+262
-1
lines changed

packages/chili-core/src/i18n/i18n.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import { Config } from "../config";
55
import en from "./en";
66
import { I18nKeys } from "./keys";
77
import zh from "./zh-cn";
8+
import ptBr from "./pt-br";
89

910
const I18nId = "chili18n";
1011
const I18nArgs = new WeakMap<HTMLElement, any[]>();
1112

12-
export type LanguageCode = "zh-CN" | "en";
13+
export type LanguageCode = "zh-CN" | "en" | "pt-BR";
1314

1415
export type Locale = {
1516
display: string;
@@ -37,6 +38,7 @@ export namespace I18n {
3738
export const languages = new Map<LanguageCode, Locale>([
3839
["en", en],
3940
["zh-CN", zh],
41+
["pt-BR", ptBr],
4042
]);
4143

4244
let _currentLanguage: LanguageCode | undefined = undefined;
Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,259 @@
1+
// Part of the Chili3d Project, under the AGPL-3.0 License.
2+
// See LICENSE file in the project root for full license information.
3+
4+
import { Locale } from "./i18n";
5+
6+
export default {
7+
display: "Português - Brasil",
8+
code: "pt-BR",
9+
translation: {
10+
"arc.angle": "Ângulo",
11+
"arc.start": "Início",
12+
"axis.x": "Eixo X",
13+
"axis.y": "Eixo Y",
14+
"axis.z": "Eixo Z",
15+
"body.arc": "Arco",
16+
"body.bolean": "Boolean",
17+
"body.box": "Caixa",
18+
"body.pyramid": "Pirâmide",
19+
"body.cylinder": "Cilindro",
20+
"body.cone": "Cone",
21+
"body.group": "Group",
22+
"body.sphere": "Esfera",
23+
"body.ellipse": "Ellipse",
24+
"body.circle": "Circle",
25+
"body.face": "Face",
26+
"body.fuse": "Fuse",
27+
"body.imported": "Imported",
28+
"body.line": "Line",
29+
"body.polygon": "Pline",
30+
"body.prism": "Prisma",
31+
"body.rect": "Retângulo",
32+
"body.revol": "Revolve",
33+
"body.sweep": "Sweep",
34+
"body.wire": "Wire",
35+
"box.dx": "Comprimento",
36+
"box.dy": "Largura",
37+
"box.dz": "Altura",
38+
"body.editableShape": "Forma Editável",
39+
"body.meshNode": "Nó Mesh",
40+
"body.multiShape": "Multi Formas",
41+
"circle.center": "Centro",
42+
"circle.radius": "Raio",
43+
"ellipsoid.radiusX": "RaioX",
44+
"ellipsoid.radiusY": "RaioY",
45+
"ellipsoid.radiusZ": "RaioZ",
46+
"ellipse.majorRadius": "major Radius",
47+
"ellipse.minorRadius": "minor Radius",
48+
"command.act.alignCamera": "Alinhar Câmera",
49+
"command.boolean.common": "Interseção",
50+
"command.boolean.cut": "Cortar",
51+
"command.boolean.join": "Mesclar",
52+
"command.convert.fuse": "Fundir",
53+
"command.convert.revol": "Revolve",
54+
"command.convert.sweep": "Sweep",
55+
"command.convert.toFace": "Para Face",
56+
"command.convert.toShell": "Para Casca",
57+
"command.convert.toSolid": "Para Sólido",
58+
"command.convert.toWire": "Para Wireframe",
59+
"command.convert.curveProjection": "Projeção",
60+
"command.create.arc": "Arco",
61+
"command.create.bezier": "Bezier",
62+
"command.create.box": "Caixa",
63+
"command.create.circle": "Círculo",
64+
"command.create.cone": "Cone",
65+
"command.create.copyShape": "Copiar Forma",
66+
"command.create.cylinder": "Cilindro",
67+
"command.create.ellipse": "Elipse",
68+
"command.create.ellipsoid": "Elipsóide",
69+
"command.create.extrude": "Extrusão",
70+
"command.create.folder": "Criar Pasta",
71+
"command.create.group": "Agrupar",
72+
"command.create.line": "Linha",
73+
"command.create.offset": "Deslocar",
74+
"command.create.polygon": "Polilinha",
75+
"command.create.pyramid": "Piramide",
76+
"command.create.rect": "Retângulo",
77+
"command.create.section": "Criar Seção",
78+
"command.create.sphere": "Esfera",
79+
"command.create.thickSolid": "Thick Solid",
80+
"command.doc.new": "Novo Documento",
81+
"command.doc.open": "Abrir Documento",
82+
"command.doc.save": "Salvar Documento",
83+
"command.doc.saveToFile": "Salvar para Arquivo",
84+
"command.edit.redo": "Refazer",
85+
"command.edit.undo": "Desfazer",
86+
"command.file.export": "Exportar",
87+
"command.file.import": "Importar",
88+
"command.measure.angle": "Angle",
89+
"command.measure.length": "Length",
90+
"command.measure.select": "Select",
91+
"command.modify.array": "Array",
92+
"command.modify.break": "Break",
93+
"command.modify.brushAdd": "Brush Add",
94+
"command.modify.brushRemove": "Brush Remove",
95+
"command.modify.brushClear": "Brush Clear",
96+
"command.modify.chamfer": "Chamfer",
97+
"command.modify.deleteNode": "Delete Node",
98+
"command.modify.explode": "Explode",
99+
"command.modify.fillet": "Fillet",
100+
"command.modify.mirror": "Mirror",
101+
"command.modify.move": "Move",
102+
"command.modify.removeFeature": "Remove Feature",
103+
"command.modify.removeShapes": "Remove Shapes",
104+
"command.modify.rotate": "Rotate",
105+
"command.modify.split": "Split",
106+
"command.modify.trim": "Trim",
107+
"command.special.last": "__Last_COMMAND__",
108+
"command.test.performance": "Performance Test",
109+
"command.wechat.group": "Wechat",
110+
"command.workingPlane.alignToPlane": "Align",
111+
"command.workingPlane.fromSection": "Section",
112+
"command.workingPlane.set": "Set",
113+
"command.workingPlane.toggleDynamic": "Toggle",
114+
"common.angle": "Angle",
115+
"common.area": "Area",
116+
"common.back": "Back",
117+
"common.language": "Language",
118+
"common.3DNavigation": "3D Navigation",
119+
"common.theme": "Theme",
120+
"common.theme.light": "Light",
121+
"common.theme.dark": "Dark",
122+
"common.theme.system": "System",
123+
"common.cancel": "Cancel",
124+
"common.clone": "Clone",
125+
"common.color": "Color",
126+
"common.confirm": "Confirm",
127+
"common.general": "General",
128+
"common.length": "Length",
129+
"common.dir": "Direction",
130+
"common.material": "Material",
131+
"common.matrix": "Matrix",
132+
"common.name": "Name",
133+
"common.normal": "Normal",
134+
"common.opacity": "Opacity",
135+
"common.thickness": "Thickness",
136+
"common.type": "Type",
137+
"common.volume": "Volume",
138+
"dialog.title.selectWorkingPlane": "Select Working Plane",
139+
"entity.editable": "Editable Entity",
140+
"entity.parameter": "Parameter Entity",
141+
"error.default:{0}": "error: {0}",
142+
"error.input.cannotInputANumber": "Overlap with reference point, 1 number cannot be entered",
143+
"error.input.invalidNumber": "Please enter a valid number, separated by ,",
144+
"error.input.threeNumberCanBeInput": "Reference point is empty, only 3 numbers can be entered",
145+
"error.input.unsupportedInputs": "Exceeds the maximum number of inputs",
146+
"error.import.unsupportedFileType:{0}": "Unsupported file type: {0}",
147+
"error.export.noNodeCanBeExported": "No node can be exported",
148+
"file.format": "Format",
149+
"home.recent": "Recent",
150+
"home.welcome": "Welcome to chili3d",
151+
"items.header": "Items",
152+
"items.tool.delete": "Delete",
153+
"items.tool.expandAll": "Expand All",
154+
"items.tool.newFolder": "New Folder",
155+
"items.tool.unexpandAll": "Unexpand all",
156+
"line.end": "End",
157+
"line.start": "Start",
158+
"line.type.line": "Line",
159+
"line.type.xline": "XLine",
160+
"material.texture.image": "Image",
161+
"material.texture.rotation": "Rotation",
162+
"material.texture.wrapS": "Wrap S",
163+
"material.texture.wrapT": "Wrap T",
164+
"material.texture.repeat": "Repeat",
165+
"material.texture.offset": "Offset",
166+
"material.map": "Map",
167+
"material.specular": "Specular",
168+
"material.shininess": "Shininess",
169+
"material.emissive": "Emissive",
170+
"material.specularMap": "Specular Map",
171+
"material.normalMap": "Normal Map",
172+
"material.bumpMap": "BumpMap",
173+
"material.roughnessMap": "Roughness Map",
174+
"material.emissiveMap": "Emissive Map",
175+
"material.metalness": "Metalness",
176+
"material.metalnessMap": "Metalness Map",
177+
"material.roughness": "Roughness",
178+
"model.visible": "Visible",
179+
"option.command.repeat": "Repeat",
180+
"option.command.isFace": "Face",
181+
"option.command.isRoundCorner": "Round Corner",
182+
"option.command.thickness": "Thickness",
183+
"option.command.isConnected": "Connected",
184+
"option.command.isConvertInstance": "Convert Instance",
185+
"option.command.insertPoint": "Insert Point",
186+
"polygon.points": "Points",
187+
"prompt.default{0}{1}":
188+
"{0} to pan the view, {1} to rotate the view, Mouse wheel to scroll the zoom view",
189+
"prompt.deleteDocument{0}": "Do you want to delete {0}?",
190+
"prompt.pickCircleCenter": "pick center, ESC key to cancel",
191+
"prompt.pickFistPoint": "Pick first point, ESC key to cancel",
192+
"prompt.pickNextPoint": "pick next point, ESC key to cancel",
193+
"prompt.pickRadius": "input radius, ESC key to cancel",
194+
"prompt.polygon.close": "Close",
195+
"prompt.saveDocument{0}": "Do you want to save the changes to {0}?",
196+
"prompt.select.edges": "Please select edges",
197+
"prompt.select.faces": "Please select faces",
198+
"prompt.select.models": "Please select models",
199+
"prompt.select.noModelSelected": "No model selected",
200+
"prompt.select.section": "Please select section",
201+
"prompt.select.shape": "Please select shape",
202+
"prompt.select.solids": "Please select solids",
203+
"prompt.select.path": "Please select path",
204+
"prompt.select.vertexes": "Please select vertexes",
205+
"prompt.select.wires": "Please select wires",
206+
"toast.snap.notFoundValidPoint": "No valid point",
207+
"properties.group.transform": "Transform",
208+
"properties.header": "Properties",
209+
"properties.multivalue": "Multi Value",
210+
"rect.dx": "Length",
211+
"rect.dy": "Width",
212+
"ribbon.group.2d": "2D",
213+
"ribbon.group.3d": "3D",
214+
"ribbon.group.act": "Act",
215+
"ribbon.group.boolean": "Boolean",
216+
"ribbon.group.converter": "Converter",
217+
"ribbon.group.draw": "Sketch",
218+
"ribbon.group.importExport": "Import/Export",
219+
"ribbon.group.measure": "Measure",
220+
"ribbon.group.modify": "Modify",
221+
"ribbon.group.other": "Other",
222+
"ribbon.group.selection": "Selection",
223+
"ribbon.group.tools": "Tools",
224+
"ribbon.group.workingPlane": "Working Plane",
225+
"ribbon.tab.draw": "Sketch",
226+
"ribbon.tab.file": "File",
227+
"ribbon.tab.tools": "Tools",
228+
"ribbon.tab.startup": "Startup",
229+
"snap.center": "Center",
230+
"snap.end": "End",
231+
"snap.intersection": "Intersection",
232+
"snap.mid": "Middle",
233+
"snap.perpendicular": "Perpendicular",
234+
"snap.nearest": "Nearest",
235+
"statusBar.snap": "Snap",
236+
"statusBar.tracking": "Tracking",
237+
"toast.command.{0}excuting": "Command {0} is runing",
238+
"toast.converter.error": "Converter error",
239+
"toast.converter.invalidColor": "The color is invalid",
240+
"toast.delete{0}Objects": "Deleted {0} objects",
241+
"toast.document.noActivated": "No document activated",
242+
"toast.document.saved": "Document saved",
243+
"toast.downloading": "Downloading",
244+
"toast.excuting{0}": "Excuting {0}",
245+
"toast.fail": "Fail",
246+
"toast.read.error": "Read error",
247+
"toast.select.noSelected": "No selected",
248+
"toast.success": "Success",
249+
"transform.rotation": "Rotation",
250+
"transform.scale": "Scale",
251+
"transform.translation": "Translation",
252+
"vertex.point": "Point",
253+
"viewport.orthographic": "Orthographic",
254+
"viewport.perspective": "Perspective",
255+
"viewport.fitContent": "Fit Content",
256+
"viewport.zoomIn": "Zoom In",
257+
"viewport.zoomOut": "Zoom Out",
258+
},
259+
} satisfies Locale;

0 commit comments

Comments
 (0)