@unisim/sdk 0.215.0 → 0.216.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/dist/Button.d.ts +300 -0
- package/dist/Button.d.ts.map +1 -0
- package/dist/Button.js +25 -0
- package/dist/Button.js.map +1 -0
- package/dist/DevelopmentRibbon.d.ts +36 -0
- package/dist/DevelopmentRibbon.d.ts.map +1 -0
- package/dist/DevelopmentRibbon.js +177 -0
- package/dist/DevelopmentRibbon.js.map +1 -0
- package/dist/SuiteSwitcher.d.ts +8 -0
- package/dist/SuiteSwitcher.d.ts.map +1 -1
- package/dist/SuiteSwitcher.js.map +1 -1
- package/dist/Tabs.d.ts +15 -0
- package/dist/Tabs.d.ts.map +1 -0
- package/dist/Tabs.js +37 -0
- package/dist/Tabs.js.map +1 -0
- package/dist/UniversalAppsNavBar.d.ts +8 -1
- package/dist/UniversalAppsNavBar.d.ts.map +1 -1
- package/dist/UniversalAppsNavBar.js +4 -2
- package/dist/UniversalAppsNavBar.js.map +1 -1
- package/dist/buttonStyles.d.ts +14 -0
- package/dist/buttonStyles.d.ts.map +1 -0
- package/dist/buttonStyles.js +221 -0
- package/dist/buttonStyles.js.map +1 -0
- package/dist/i18n.d.ts.map +1 -1
- package/dist/i18n.js +144 -0
- package/dist/i18n.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/provider.d.ts +1 -0
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +6 -0
- package/dist/provider.js.map +1 -1
- package/dist/tabStyles.d.ts +14 -0
- package/dist/tabStyles.d.ts.map +1 -0
- package/dist/tabStyles.js +194 -0
- package/dist/tabStyles.js.map +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
// @unisim/sdk — the suite's key buttons, as CSS.
|
|
2
|
+
//
|
|
3
|
+
// Owner decision 2026-11-04, from the tab and button studies
|
|
4
|
+
// (https://claude.ai/artifact/YBeVjfweANs1Khogwr5X9h; BRANDING.md → Buttons):
|
|
5
|
+
// option D, the key button, in colourway D1. The Value chip's key, as a
|
|
6
|
+
// button: an icon sits in a solid key at the leading edge, and the key widens a
|
|
7
|
+
// little on hover.
|
|
8
|
+
//
|
|
9
|
+
// Primary (`.u-btn--primary`) once per view. White body, an orange
|
|
10
|
+
// outline, and the brand orange as the key.
|
|
11
|
+
// Secondary (`.u-btn`, no rank) white body, slate hairline, slate key;
|
|
12
|
+
// the outline and key turn orange on hover.
|
|
13
|
+
// Soft (`.u-btn--soft`) an orange tint, Orange 700 text.
|
|
14
|
+
// Quiet (`.u-btn--quiet`) text only (Cancel, Edit in a row).
|
|
15
|
+
// Danger (`.u-btn--danger`) as secondary, red text, a pale red key.
|
|
16
|
+
//
|
|
17
|
+
// Small (`.u-btn--sm`) 32px instead of 40px.
|
|
18
|
+
// The key (`.u-btn__key`) the button's first child, holding its
|
|
19
|
+
// icon. Optional: a button with no icon is
|
|
20
|
+
// just its body. Soft and quiet buttons put
|
|
21
|
+
// an icon straight inside instead.
|
|
22
|
+
//
|
|
23
|
+
// This file has no React import on purpose: `Button.tsx` is the component, and
|
|
24
|
+
// a page with no build step, or an app that keeps class strings, uses these
|
|
25
|
+
// classes on plain markup after calling `installButtonStyles()`.
|
|
26
|
+
//
|
|
27
|
+
// ── Cascade ────────────────────────────────────────────────────────────────
|
|
28
|
+
// As the boxes (0.203.1): the button's own look (display, size, padding,
|
|
29
|
+
// border, fill, text) sits in a cascade layer nested in Tailwind 4's
|
|
30
|
+
// `components` layer, at zero specificity, so an app's utilities (`w-full`,
|
|
31
|
+
// `px-3`, `justify-start`) win and Tailwind's preflight (`button { background:
|
|
32
|
+
// transparent }`) does not. The rank tokens, the key and the focus ring stay
|
|
33
|
+
// unlayered with class specificity, so they survive an app's resets.
|
|
34
|
+
//
|
|
35
|
+
// ── Grounds ────────────────────────────────────────────────────────────────
|
|
36
|
+
// As the chips and boxes: light by default; `data-u-ground="dark"`, Tailwind's
|
|
37
|
+
// `dark` class or `data-theme="dark"` on the button or an ancestor makes it
|
|
38
|
+
// dark; the button's own `data-u-ground="light"` beats a dark ancestor.
|
|
39
|
+
//
|
|
40
|
+
// ── Knobs ──────────────────────────────────────────────────────────────────
|
|
41
|
+
// --u-btn-accent / --u-btn-accent-dark the primary's outline and every hover outline
|
|
42
|
+
// --u-btn-key / --u-btn-key-dark the primary's key
|
|
43
|
+
// --u-btn-surface / --u-btn-surface-dark the body of primary, secondary and danger
|
|
44
|
+
// A tenant colour goes in as `brand_color_accessible`, never `brand_color`.
|
|
45
|
+
//
|
|
46
|
+
// ── Contrast ───────────────────────────────────────────────────────────────
|
|
47
|
+
// Every label clears 4.5:1 on its own body, and every key icon on its key, on
|
|
48
|
+
// both grounds; `tests/controls.browser.mjs` measures it. The primary is ink on
|
|
49
|
+
// white (17.9:1) with an ink icon on #FE8C01 (7.66:1): no white text on orange
|
|
50
|
+
// anywhere, which is what let D1 keep the brand orange itself.
|
|
51
|
+
const LIGHT = {
|
|
52
|
+
ink: '#0f172a',
|
|
53
|
+
soft: '#475569',
|
|
54
|
+
surface: 'var(--u-btn-surface, #ffffff)',
|
|
55
|
+
line: '#cbd5e1',
|
|
56
|
+
'slate-key': '#e9edf4',
|
|
57
|
+
'slate-key-ink': '#475569',
|
|
58
|
+
accent: 'var(--u-btn-accent, #e05504)',
|
|
59
|
+
'accent-text': '#c2410c',
|
|
60
|
+
'p-hover': '#fff6ec',
|
|
61
|
+
'p-key': 'var(--u-btn-key, #fe8c01)',
|
|
62
|
+
'p-key-hover': '#f27a00',
|
|
63
|
+
'p-key-ink': '#0f172a',
|
|
64
|
+
tint: 'color-mix(in srgb, #fe8c01 9%, #ffffff)',
|
|
65
|
+
'tint-hover': 'color-mix(in srgb, #fe8c01 16%, #ffffff)',
|
|
66
|
+
'quiet-hover': '#e9edf4',
|
|
67
|
+
crit: '#b3261e',
|
|
68
|
+
'crit-key': '#fce8e6',
|
|
69
|
+
focus: '#e05504',
|
|
70
|
+
};
|
|
71
|
+
const DARK = {
|
|
72
|
+
ink: '#e6eaf2',
|
|
73
|
+
soft: '#9fb0c6',
|
|
74
|
+
surface: 'var(--u-btn-surface-dark, #0f172a)',
|
|
75
|
+
line: '#475569',
|
|
76
|
+
'slate-key': '#1e293b',
|
|
77
|
+
'slate-key-ink': '#9fb0c6',
|
|
78
|
+
accent: 'var(--u-btn-accent-dark, #ff9a1f)',
|
|
79
|
+
'accent-text': '#ff9a1f',
|
|
80
|
+
'p-hover': '#1c2536',
|
|
81
|
+
'p-key': 'var(--u-btn-key-dark, #ff9a1f)',
|
|
82
|
+
'p-key-hover': '#ffb04d',
|
|
83
|
+
'p-key-ink': '#0f172a',
|
|
84
|
+
tint: 'color-mix(in srgb, #ff9a1f 13%, #0f172a)',
|
|
85
|
+
'tint-hover': 'color-mix(in srgb, #ff9a1f 20%, #0f172a)',
|
|
86
|
+
'quiet-hover': '#1e293b',
|
|
87
|
+
crit: '#f0645a',
|
|
88
|
+
'crit-key': '#3a1d22',
|
|
89
|
+
focus: '#ff9a1f',
|
|
90
|
+
};
|
|
91
|
+
const decl = (tokens) => Object.entries(tokens).map(([k, v]) => `--_bt-${k}: ${v};`).join(' ');
|
|
92
|
+
/** The id of the `<style>` element {@link installButtonStyles} adds. */
|
|
93
|
+
export const BUTTON_STYLE_ID = 'unisim-button-css';
|
|
94
|
+
/**
|
|
95
|
+
* The complete button stylesheet. A page with no build step pastes this into
|
|
96
|
+
* its CSS; everything else lets `<Button>` or `installButtonStyles()` inject it.
|
|
97
|
+
*/
|
|
98
|
+
export const BUTTON_CSS = `
|
|
99
|
+
.u-btn { ${decl(LIGHT)} }
|
|
100
|
+
[data-u-ground="dark"] .u-btn, .dark .u-btn, [data-theme="dark"] .u-btn { ${decl(DARK)} }
|
|
101
|
+
.u-btn[data-u-ground="light"] { ${decl(LIGHT)} }
|
|
102
|
+
.u-btn[data-u-ground="dark"] { ${decl(DARK)} }
|
|
103
|
+
|
|
104
|
+
/* Each rank is a set of local tokens; the look below reads them. No rank is
|
|
105
|
+
secondary. The hover tokens default to the resting ones. */
|
|
106
|
+
.u-btn {
|
|
107
|
+
--_bg: var(--_bt-surface); --_bd: var(--_bt-line); --_fg: var(--_bt-ink);
|
|
108
|
+
--_k: var(--_bt-slate-key); --_kfg: var(--_bt-slate-key-ink); --_kbd: var(--_bt-line);
|
|
109
|
+
--_bg-h: var(--_bg); --_bd-h: var(--_bt-accent); --_fg-h: var(--_fg);
|
|
110
|
+
--_k-h: var(--_bt-tint); --_kfg-h: var(--_bt-accent-text);
|
|
111
|
+
}
|
|
112
|
+
.u-btn--primary {
|
|
113
|
+
--_bg: var(--_bt-surface); --_bd: var(--_bt-accent); --_fg: var(--_bt-ink);
|
|
114
|
+
--_k: var(--_bt-p-key); --_kfg: var(--_bt-p-key-ink); --_kbd: transparent;
|
|
115
|
+
--_bg-h: var(--_bt-p-hover); --_bd-h: var(--_bt-accent);
|
|
116
|
+
--_k-h: var(--_bt-p-key-hover); --_kfg-h: var(--_bt-p-key-ink);
|
|
117
|
+
}
|
|
118
|
+
.u-btn--soft {
|
|
119
|
+
--_bg: var(--_bt-tint); --_bd: transparent; --_fg: var(--_bt-accent-text);
|
|
120
|
+
--_k: var(--_bt-tint-hover); --_kfg: var(--_bt-accent-text); --_kbd: transparent;
|
|
121
|
+
--_bg-h: var(--_bt-tint-hover); --_bd-h: transparent;
|
|
122
|
+
}
|
|
123
|
+
.u-btn--quiet {
|
|
124
|
+
--_bg: transparent; --_bd: transparent; --_fg: var(--_bt-soft);
|
|
125
|
+
--_k: transparent; --_kfg: var(--_bt-soft); --_kbd: transparent;
|
|
126
|
+
--_bg-h: var(--_bt-quiet-hover); --_bd-h: transparent; --_fg-h: var(--_bt-ink);
|
|
127
|
+
--_k-h: transparent; --_kfg-h: var(--_bt-ink);
|
|
128
|
+
}
|
|
129
|
+
.u-btn--danger {
|
|
130
|
+
--_fg: var(--_bt-crit); --_k: var(--_bt-crit-key); --_kfg: var(--_bt-crit);
|
|
131
|
+
--_bd-h: var(--_bt-crit); --_k-h: var(--_bt-crit-key); --_kfg-h: var(--_bt-crit);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* The button's own look, layered and at zero specificity: an app's classes and
|
|
135
|
+
Tailwind 4's utilities win, its preflight does not ("Cascade" above). */
|
|
136
|
+
@layer theme, base, components, utilities;
|
|
137
|
+
@layer components.unisim-button {
|
|
138
|
+
:where(.u-btn) {
|
|
139
|
+
position: relative;
|
|
140
|
+
box-sizing: border-box;
|
|
141
|
+
display: inline-flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
justify-content: center;
|
|
144
|
+
gap: 8px;
|
|
145
|
+
min-height: 40px;
|
|
146
|
+
padding: 0 16px;
|
|
147
|
+
border: 1px solid var(--_bd);
|
|
148
|
+
border-radius: 8px;
|
|
149
|
+
background: var(--_bg);
|
|
150
|
+
color: var(--_fg);
|
|
151
|
+
font: inherit;
|
|
152
|
+
font-size: 14px;
|
|
153
|
+
font-weight: 600;
|
|
154
|
+
line-height: 1.2;
|
|
155
|
+
text-align: center;
|
|
156
|
+
text-decoration: none;
|
|
157
|
+
white-space: nowrap;
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
overflow: hidden;
|
|
160
|
+
-webkit-tap-highlight-color: transparent;
|
|
161
|
+
transition: background-color 0.15s, border-color 0.15s, color 0.15s;
|
|
162
|
+
}
|
|
163
|
+
:where(.u-btn:has(> .u-btn__key)) { padding-left: 0; }
|
|
164
|
+
:where(.u-btn--sm) { min-height: 32px; padding: 0 12px; gap: 6px; font-size: 13px; }
|
|
165
|
+
:where(.u-btn--sm:has(> .u-btn__key)) { padding-left: 0; }
|
|
166
|
+
:where(.u-btn:disabled, .u-btn[aria-disabled="true"]) { opacity: 0.45; cursor: not-allowed; }
|
|
167
|
+
@media (hover: hover) {
|
|
168
|
+
:where(.u-btn:not(:disabled):not([aria-disabled="true"]):hover) {
|
|
169
|
+
background: var(--_bg-h);
|
|
170
|
+
border-color: var(--_bd-h);
|
|
171
|
+
color: var(--_fg-h);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* ── The key: the icon's solid block at the leading edge ──
|
|
177
|
+
It covers the button's own border on three sides (the negative margins),
|
|
178
|
+
and the button's overflow clips it to the corners. */
|
|
179
|
+
.u-btn__key {
|
|
180
|
+
align-self: stretch;
|
|
181
|
+
flex: none;
|
|
182
|
+
display: grid;
|
|
183
|
+
place-items: center;
|
|
184
|
+
width: 40px;
|
|
185
|
+
margin: -1px 2px -1px -1px;
|
|
186
|
+
border-right: 1px solid var(--_kbd);
|
|
187
|
+
background: var(--_k);
|
|
188
|
+
color: var(--_kfg);
|
|
189
|
+
transition: width 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.15s, color 0.15s;
|
|
190
|
+
}
|
|
191
|
+
.u-btn--sm > .u-btn__key { width: 32px; }
|
|
192
|
+
.u-btn > svg, .u-btn__key > svg { width: 16px; height: 16px; flex: none; }
|
|
193
|
+
.u-btn--sm > svg, .u-btn--sm > .u-btn__key > svg { width: 14px; height: 14px; }
|
|
194
|
+
@media (hover: hover) {
|
|
195
|
+
.u-btn:not(:disabled):not([aria-disabled="true"]):hover > .u-btn__key { width: 46px; background: var(--_k-h); color: var(--_kfg-h); }
|
|
196
|
+
.u-btn--sm:not(:disabled):not([aria-disabled="true"]):hover > .u-btn__key { width: 36px; }
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.u-btn:focus-visible { outline: 2px solid var(--_bt-focus); outline-offset: 2px; }
|
|
200
|
+
|
|
201
|
+
/* The display rule above would otherwise beat the UA's [hidden] rule. */
|
|
202
|
+
.u-btn[hidden] { display: none; }
|
|
203
|
+
|
|
204
|
+
@media (prefers-reduced-motion: reduce) {
|
|
205
|
+
.u-btn, .u-btn__key { transition: none; }
|
|
206
|
+
}
|
|
207
|
+
`;
|
|
208
|
+
/**
|
|
209
|
+
* Adds {@link BUTTON_CSS} to the document once. Safe to call any number of
|
|
210
|
+
* times, and a no-op outside a browser. `<Button>` calls it itself; call it
|
|
211
|
+
* directly when a page uses the `u-btn` classes on plain markup.
|
|
212
|
+
*/
|
|
213
|
+
export function installButtonStyles(doc = typeof document === 'undefined' ? undefined : document) {
|
|
214
|
+
if (!doc || doc.getElementById(BUTTON_STYLE_ID))
|
|
215
|
+
return;
|
|
216
|
+
const el = doc.createElement('style');
|
|
217
|
+
el.id = BUTTON_STYLE_ID;
|
|
218
|
+
el.textContent = BUTTON_CSS;
|
|
219
|
+
doc.head.appendChild(el);
|
|
220
|
+
}
|
|
221
|
+
//# sourceMappingURL=buttonStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttonStyles.js","sourceRoot":"","sources":["../src/buttonStyles.ts"],"names":[],"mappings":"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"}
|
package/dist/i18n.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,mBAAmB,0EAA2E,CAAA;AAE3G,MAAM,MAAM,QAAQ,GAAG,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAA;AAEzD,eAAO,MAAM,gBAAgB,EAAE,QAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,mBAAmB,0EAA2E,CAAA;AAE3G,MAAM,MAAM,QAAQ,GAAG,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAA;AAEzD,eAAO,MAAM,gBAAgB,EAAE,QAAkB,CAAA;AA0qEjD,wBAAgB,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGtE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,IAAI,QAAQ,CAGrF;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,QAAQ,GAAG,IAAI,CAUhF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,QAAQ,GAAG,IAAI,CAGvF;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,EAAE,CAY3E;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAC/B,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,EAC9C,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC9B,CAAC,GAAG,SAAS,CAUf"}
|
package/dist/i18n.js
CHANGED
|
@@ -43,6 +43,24 @@ export const DEFAULT_LANGUAGE = 'en-gb';
|
|
|
43
43
|
*/
|
|
44
44
|
const ENGLISH = 'en';
|
|
45
45
|
const en = {
|
|
46
|
+
'dev.in_development': 'In development',
|
|
47
|
+
'dev.finished_apps': 'Finished apps',
|
|
48
|
+
'dev.ribbon_label': 'This app is still in development — see our finished apps on the open-source portal',
|
|
49
|
+
'dev.ribbon_action': 'Get notified',
|
|
50
|
+
'dev.ribbon_label_notify': 'This app is still in development — get an email when it launches, or see our finished apps',
|
|
51
|
+
'dev.panel_title': 'Still in development',
|
|
52
|
+
'dev.panel_title_named': '{app} is still in development',
|
|
53
|
+
'dev.panel_body': 'You can try it, but it isn\'t finished: things may change or break while we build it.',
|
|
54
|
+
'dev.notify_label': 'Tell me when it launches',
|
|
55
|
+
'dev.notify_placeholder': 'you@example.com',
|
|
56
|
+
'dev.notify_button': 'Notify me',
|
|
57
|
+
'dev.notify_sending': 'Saving…',
|
|
58
|
+
'dev.notify_done': 'Thanks — we\'ll email you when it launches.',
|
|
59
|
+
'dev.notify_invalid': 'That doesn\'t look like an email address.',
|
|
60
|
+
'dev.notify_error': 'Couldn\'t save that. Please try again.',
|
|
61
|
+
'dev.notify_privacy': 'We\'ll only use it to tell you about this launch, then delete it.',
|
|
62
|
+
'dev.finished_apps_link': 'See our finished apps',
|
|
63
|
+
'dev.close': 'Close',
|
|
46
64
|
'nav.for': 'for',
|
|
47
65
|
'nav.your_company': 'Your Company',
|
|
48
66
|
'nav.new_assessment': 'New Assessment',
|
|
@@ -311,6 +329,24 @@ const en = {
|
|
|
311
329
|
// separately via Intl.
|
|
312
330
|
const enGB = { ...en };
|
|
313
331
|
const fr = {
|
|
332
|
+
'dev.in_development': 'En développement',
|
|
333
|
+
'dev.finished_apps': 'Apps terminées',
|
|
334
|
+
'dev.ribbon_label': 'Cette app est encore en développement — découvrez nos apps terminées sur le portail open source',
|
|
335
|
+
'dev.ribbon_action': 'Être prévenu',
|
|
336
|
+
'dev.ribbon_label_notify': 'Cette app est encore en développement — recevez un e-mail à son lancement, ou découvrez nos apps terminées',
|
|
337
|
+
'dev.panel_title': 'Encore en développement',
|
|
338
|
+
'dev.panel_title_named': '{app} est encore en développement',
|
|
339
|
+
'dev.panel_body': 'Vous pouvez l\'essayer, mais elle n\'est pas terminée : certaines choses peuvent changer ou ne pas fonctionner pendant que nous la construisons.',
|
|
340
|
+
'dev.notify_label': 'Prévenez-moi au lancement',
|
|
341
|
+
'dev.notify_placeholder': 'vous@exemple.fr',
|
|
342
|
+
'dev.notify_button': 'Me prévenir',
|
|
343
|
+
'dev.notify_sending': 'Enregistrement…',
|
|
344
|
+
'dev.notify_done': 'Merci — nous vous écrirons à son lancement.',
|
|
345
|
+
'dev.notify_invalid': 'Cette adresse e-mail ne semble pas valide.',
|
|
346
|
+
'dev.notify_error': 'Impossible d\'enregistrer. Veuillez réessayer.',
|
|
347
|
+
'dev.notify_privacy': 'Nous l\'utiliserons uniquement pour vous annoncer ce lancement, puis nous la supprimerons.',
|
|
348
|
+
'dev.finished_apps_link': 'Voir nos apps terminées',
|
|
349
|
+
'dev.close': 'Fermer',
|
|
314
350
|
'nav.for': 'pour',
|
|
315
351
|
'nav.your_company': 'Votre entreprise',
|
|
316
352
|
'nav.new_assessment': 'Nouvelle évaluation',
|
|
@@ -559,6 +595,24 @@ const fr = {
|
|
|
559
595
|
'phone.ok': 'OK',
|
|
560
596
|
};
|
|
561
597
|
const es = {
|
|
598
|
+
'dev.in_development': 'En desarrollo',
|
|
599
|
+
'dev.finished_apps': 'Apps terminadas',
|
|
600
|
+
'dev.ribbon_label': 'Esta app aún está en desarrollo: consulta nuestras apps terminadas en el portal de código abierto',
|
|
601
|
+
'dev.ribbon_action': 'Avísame',
|
|
602
|
+
'dev.ribbon_label_notify': 'Esta app aún está en desarrollo: recibe un correo cuando se lance o consulta nuestras apps terminadas',
|
|
603
|
+
'dev.panel_title': 'Aún en desarrollo',
|
|
604
|
+
'dev.panel_title_named': '{app} aún está en desarrollo',
|
|
605
|
+
'dev.panel_body': 'Puedes probarla, pero no está terminada: algunas cosas pueden cambiar o fallar mientras la construimos.',
|
|
606
|
+
'dev.notify_label': 'Avísame cuando se lance',
|
|
607
|
+
'dev.notify_placeholder': 'tu@ejemplo.com',
|
|
608
|
+
'dev.notify_button': 'Avisarme',
|
|
609
|
+
'dev.notify_sending': 'Guardando…',
|
|
610
|
+
'dev.notify_done': 'Gracias: te escribiremos cuando se lance.',
|
|
611
|
+
'dev.notify_invalid': 'Eso no parece una dirección de correo.',
|
|
612
|
+
'dev.notify_error': 'No se pudo guardar. Inténtalo de nuevo.',
|
|
613
|
+
'dev.notify_privacy': 'Solo la usaremos para avisarte de este lanzamiento y después la borraremos.',
|
|
614
|
+
'dev.finished_apps_link': 'Ver nuestras apps terminadas',
|
|
615
|
+
'dev.close': 'Cerrar',
|
|
562
616
|
'nav.for': 'para',
|
|
563
617
|
'nav.your_company': 'Su empresa',
|
|
564
618
|
'nav.new_assessment': 'Nueva evaluación',
|
|
@@ -807,6 +861,24 @@ const es = {
|
|
|
807
861
|
'phone.ok': 'Aceptar',
|
|
808
862
|
};
|
|
809
863
|
const it = {
|
|
864
|
+
'dev.in_development': 'In sviluppo',
|
|
865
|
+
'dev.finished_apps': 'App complete',
|
|
866
|
+
'dev.ribbon_label': 'Questa app è ancora in sviluppo: scopri le nostre app complete sul portale open source',
|
|
867
|
+
'dev.ribbon_action': 'Avvisami',
|
|
868
|
+
'dev.ribbon_label_notify': 'Questa app è ancora in sviluppo: ricevi un\'email al lancio o scopri le nostre app complete',
|
|
869
|
+
'dev.panel_title': 'Ancora in sviluppo',
|
|
870
|
+
'dev.panel_title_named': '{app} è ancora in sviluppo',
|
|
871
|
+
'dev.panel_body': 'Puoi provarla, ma non è finita: alcune cose potrebbero cambiare o non funzionare mentre la sviluppiamo.',
|
|
872
|
+
'dev.notify_label': 'Avvisami al lancio',
|
|
873
|
+
'dev.notify_placeholder': 'tu@esempio.it',
|
|
874
|
+
'dev.notify_button': 'Avvisami',
|
|
875
|
+
'dev.notify_sending': 'Salvataggio…',
|
|
876
|
+
'dev.notify_done': 'Grazie, ti scriveremo al lancio.',
|
|
877
|
+
'dev.notify_invalid': 'Non sembra un indirizzo email.',
|
|
878
|
+
'dev.notify_error': 'Impossibile salvare. Riprova.',
|
|
879
|
+
'dev.notify_privacy': 'La useremo solo per avvisarti di questo lancio, poi la cancelleremo.',
|
|
880
|
+
'dev.finished_apps_link': 'Scopri le nostre app complete',
|
|
881
|
+
'dev.close': 'Chiudi',
|
|
810
882
|
'nav.for': 'per',
|
|
811
883
|
'nav.your_company': 'La tua azienda',
|
|
812
884
|
'nav.new_assessment': 'Nuova valutazione',
|
|
@@ -1055,6 +1127,24 @@ const it = {
|
|
|
1055
1127
|
'phone.ok': 'OK',
|
|
1056
1128
|
};
|
|
1057
1129
|
const de = {
|
|
1130
|
+
'dev.in_development': 'In Entwicklung',
|
|
1131
|
+
'dev.finished_apps': 'Fertige Apps',
|
|
1132
|
+
'dev.ribbon_label': 'Diese App ist noch in Entwicklung – unsere fertigen Apps findest du im Open-Source-Portal',
|
|
1133
|
+
'dev.ribbon_action': 'Benachrichtigen',
|
|
1134
|
+
'dev.ribbon_label_notify': 'Diese App ist noch in Entwicklung – erhalte eine E-Mail zum Start oder sieh dir unsere fertigen Apps an',
|
|
1135
|
+
'dev.panel_title': 'Noch in Entwicklung',
|
|
1136
|
+
'dev.panel_title_named': '{app} ist noch in Entwicklung',
|
|
1137
|
+
'dev.panel_body': 'Du kannst sie ausprobieren, aber sie ist noch nicht fertig: Während wir daran bauen, kann sich etwas ändern oder nicht funktionieren.',
|
|
1138
|
+
'dev.notify_label': 'Sag mir Bescheid, wenn sie startet',
|
|
1139
|
+
'dev.notify_placeholder': 'du@beispiel.de',
|
|
1140
|
+
'dev.notify_button': 'Benachrichtigen',
|
|
1141
|
+
'dev.notify_sending': 'Wird gespeichert…',
|
|
1142
|
+
'dev.notify_done': 'Danke – wir schreiben dir zum Start.',
|
|
1143
|
+
'dev.notify_invalid': 'Das sieht nicht nach einer E-Mail-Adresse aus.',
|
|
1144
|
+
'dev.notify_error': 'Speichern fehlgeschlagen. Bitte versuch es noch einmal.',
|
|
1145
|
+
'dev.notify_privacy': 'Wir nutzen sie nur für diese Startnachricht und löschen sie danach.',
|
|
1146
|
+
'dev.finished_apps_link': 'Unsere fertigen Apps ansehen',
|
|
1147
|
+
'dev.close': 'Schließen',
|
|
1058
1148
|
'nav.for': 'für',
|
|
1059
1149
|
'nav.your_company': 'Ihr Unternehmen',
|
|
1060
1150
|
'nav.new_assessment': 'Neue Bewertung',
|
|
@@ -1304,6 +1394,24 @@ const de = {
|
|
|
1304
1394
|
};
|
|
1305
1395
|
// European Portuguese — the SDK's original `pt`, unchanged but for the name.
|
|
1306
1396
|
const ptPT = {
|
|
1397
|
+
'dev.in_development': 'Em desenvolvimento',
|
|
1398
|
+
'dev.finished_apps': 'Apps concluídas',
|
|
1399
|
+
'dev.ribbon_label': 'Esta app ainda está em desenvolvimento — veja as nossas apps concluídas no portal open source',
|
|
1400
|
+
'dev.ribbon_action': 'Avisem-me',
|
|
1401
|
+
'dev.ribbon_label_notify': 'Esta app ainda está em desenvolvimento — receba um e-mail quando for lançada ou veja as nossas apps concluídas',
|
|
1402
|
+
'dev.panel_title': 'Ainda em desenvolvimento',
|
|
1403
|
+
'dev.panel_title_named': '{app} ainda está em desenvolvimento',
|
|
1404
|
+
'dev.panel_body': 'Pode experimentá-la, mas não está concluída: algumas coisas podem mudar ou falhar enquanto a construímos.',
|
|
1405
|
+
'dev.notify_label': 'Avisem-me quando for lançada',
|
|
1406
|
+
'dev.notify_placeholder': 'o.seu@exemplo.pt',
|
|
1407
|
+
'dev.notify_button': 'Avisar-me',
|
|
1408
|
+
'dev.notify_sending': 'A guardar…',
|
|
1409
|
+
'dev.notify_done': 'Obrigado — enviaremos um e-mail quando for lançada.',
|
|
1410
|
+
'dev.notify_invalid': 'Isso não parece um endereço de e-mail.',
|
|
1411
|
+
'dev.notify_error': 'Não foi possível guardar. Tente novamente.',
|
|
1412
|
+
'dev.notify_privacy': 'Só o usaremos para o avisar deste lançamento e depois apagamo-lo.',
|
|
1413
|
+
'dev.finished_apps_link': 'Ver as nossas apps concluídas',
|
|
1414
|
+
'dev.close': 'Fechar',
|
|
1307
1415
|
'nav.for': 'para',
|
|
1308
1416
|
'nav.your_company': 'A sua empresa',
|
|
1309
1417
|
'nav.new_assessment': 'Nova avaliação',
|
|
@@ -1564,6 +1672,24 @@ const ptPT = {
|
|
|
1564
1672
|
// • clitics go BEFORE the verb where Brazilians put them — "se apoia",
|
|
1565
1673
|
// "Me envie um código" — and after an infinitive ("digitá-lo").
|
|
1566
1674
|
const ptBR = {
|
|
1675
|
+
'dev.in_development': 'Em desenvolvimento',
|
|
1676
|
+
'dev.finished_apps': 'Apps prontos',
|
|
1677
|
+
'dev.ribbon_label': 'Este app ainda está em desenvolvimento — veja nossos apps prontos no portal de código aberto',
|
|
1678
|
+
'dev.ribbon_action': 'Me avise',
|
|
1679
|
+
'dev.ribbon_label_notify': 'Este app ainda está em desenvolvimento — receba um e-mail quando for lançado ou veja nossos apps prontos',
|
|
1680
|
+
'dev.panel_title': 'Ainda em desenvolvimento',
|
|
1681
|
+
'dev.panel_title_named': '{app} ainda está em desenvolvimento',
|
|
1682
|
+
'dev.panel_body': 'Você pode testar, mas ele não está pronto: algumas coisas podem mudar ou falhar enquanto o construímos.',
|
|
1683
|
+
'dev.notify_label': 'Me avise quando for lançado',
|
|
1684
|
+
'dev.notify_placeholder': 'voce@exemplo.com.br',
|
|
1685
|
+
'dev.notify_button': 'Me avisar',
|
|
1686
|
+
'dev.notify_sending': 'Salvando…',
|
|
1687
|
+
'dev.notify_done': 'Obrigado — vamos te mandar um e-mail quando for lançado.',
|
|
1688
|
+
'dev.notify_invalid': 'Isso não parece um endereço de e-mail.',
|
|
1689
|
+
'dev.notify_error': 'Não foi possível salvar. Tente de novo.',
|
|
1690
|
+
'dev.notify_privacy': 'Só vamos usá-lo para avisar sobre este lançamento e depois vamos apagá-lo.',
|
|
1691
|
+
'dev.finished_apps_link': 'Ver nossos apps prontos',
|
|
1692
|
+
'dev.close': 'Fechar',
|
|
1567
1693
|
'nav.for': 'para',
|
|
1568
1694
|
'nav.your_company': 'Sua empresa',
|
|
1569
1695
|
'nav.new_assessment': 'Nova avaliação',
|
|
@@ -1815,6 +1941,24 @@ const ptBR = {
|
|
|
1815
1941
|
'phone.ok': 'OK',
|
|
1816
1942
|
};
|
|
1817
1943
|
const tr = {
|
|
1944
|
+
'dev.in_development': 'Geliştiriliyor',
|
|
1945
|
+
'dev.finished_apps': 'Hazır uygulamalar',
|
|
1946
|
+
'dev.ribbon_label': 'Bu uygulama hâlâ geliştiriliyor — tamamlanan uygulamalarımızı açık kaynak portalında görün',
|
|
1947
|
+
'dev.ribbon_action': 'Haber ver',
|
|
1948
|
+
'dev.ribbon_label_notify': 'Bu uygulama hâlâ geliştiriliyor — yayınlandığında e-posta alın veya hazır uygulamalarımızı görün',
|
|
1949
|
+
'dev.panel_title': 'Hâlâ geliştiriliyor',
|
|
1950
|
+
'dev.panel_title_named': '{app} hâlâ geliştiriliyor',
|
|
1951
|
+
'dev.panel_body': 'Deneyebilirsiniz ama henüz bitmedi: biz geliştirirken bazı şeyler değişebilir veya bozulabilir.',
|
|
1952
|
+
'dev.notify_label': 'Yayınlandığında bana haber ver',
|
|
1953
|
+
'dev.notify_placeholder': 'siz@ornek.com',
|
|
1954
|
+
'dev.notify_button': 'Haber ver',
|
|
1955
|
+
'dev.notify_sending': 'Kaydediliyor…',
|
|
1956
|
+
'dev.notify_done': 'Teşekkürler — yayınlandığında size e-posta göndereceğiz.',
|
|
1957
|
+
'dev.notify_invalid': 'Bu bir e-posta adresine benzemiyor.',
|
|
1958
|
+
'dev.notify_error': 'Kaydedilemedi. Lütfen tekrar deneyin.',
|
|
1959
|
+
'dev.notify_privacy': 'Yalnızca bu yayını duyurmak için kullanacağız, sonra sileceğiz.',
|
|
1960
|
+
'dev.finished_apps_link': 'Hazır uygulamalarımızı görün',
|
|
1961
|
+
'dev.close': 'Kapat',
|
|
1818
1962
|
'nav.for': 'için',
|
|
1819
1963
|
'nav.your_company': 'Şirketiniz',
|
|
1820
1964
|
'nav.new_assessment': 'Yeni değerlendirme',
|