@cavuno/board 1.31.0-preview.0 → 1.32.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/dist/filters.mjs CHANGED
@@ -92,6 +92,584 @@ function getSalaryLexicon(locale) {
92
92
  return locale && LEXICONS[locale] || EN;
93
93
  }
94
94
 
95
+ // src/format/labels.ts
96
+ var EN_LABELS = {
97
+ // remoteOption
98
+ on_site: "On-site",
99
+ hybrid: "Hybrid",
100
+ remote: "Remote",
101
+ // employmentType
102
+ full_time: "Full-time",
103
+ part_time: "Part-time",
104
+ contract: "Contract",
105
+ internship: "Internship",
106
+ temporary: "Temporary",
107
+ volunteer: "Volunteer",
108
+ other: "Other"
109
+ };
110
+ var DE_LABELS = {
111
+ on_site: "Vor Ort",
112
+ hybrid: "Hybrid",
113
+ remote: "Remote",
114
+ full_time: "Vollzeit",
115
+ part_time: "Teilzeit",
116
+ contract: "Freiberuflich",
117
+ internship: "Praktikum",
118
+ temporary: "Befristet",
119
+ volunteer: "Ehrenamtlich",
120
+ other: "Sonstiges"
121
+ };
122
+ var FR_LABELS = {
123
+ on_site: "Sur site",
124
+ hybrid: "Hybride",
125
+ remote: "T\xE9l\xE9travail",
126
+ full_time: "Temps plein",
127
+ part_time: "Temps partiel",
128
+ contract: "Contrat",
129
+ internship: "Stage",
130
+ temporary: "Temporaire",
131
+ volunteer: "B\xE9n\xE9volat",
132
+ other: "Autre"
133
+ };
134
+ var VOCABULARIES = {
135
+ en: EN_LABELS,
136
+ de: DE_LABELS,
137
+ fr: FR_LABELS
138
+ };
139
+ var OVERRIDE_KEYS = {
140
+ on_site: "onSiteLabel",
141
+ hybrid: "hybridLabel",
142
+ remote: "remoteLabel",
143
+ full_time: "fullTimeLabel",
144
+ part_time: "partTimeLabel",
145
+ contract: "contractLabel",
146
+ internship: "internshipLabel",
147
+ temporary: "temporaryLabel",
148
+ volunteer: "volunteerLabel",
149
+ entry_level: "seniorityEntryLevel",
150
+ associate: "seniorityAssociate",
151
+ mid_level: "seniorityMidLevel",
152
+ senior: "senioritySenior",
153
+ lead: "seniorityLead",
154
+ principal: "seniorityPrincipal",
155
+ director: "seniorityDirector",
156
+ executive: "seniorityExecutive"
157
+ };
158
+ var SENIORITY_KEYS = /* @__PURE__ */ new Set([
159
+ "entry_level",
160
+ "associate",
161
+ "mid_level",
162
+ "senior",
163
+ "lead",
164
+ "principal",
165
+ "director",
166
+ "executive"
167
+ ]);
168
+ function storedOverride(value, labels) {
169
+ const key = OVERRIDE_KEYS[value];
170
+ const override = key ? labels?.jobCardLabels?.[key] : void 0;
171
+ return typeof override === "string" && override.trim() !== "" ? override : null;
172
+ }
173
+ function fieldLabel(locale, value, labels) {
174
+ if (!value) return null;
175
+ const override = storedOverride(value, labels);
176
+ if (override) return override;
177
+ if (SENIORITY_KEYS.has(value)) {
178
+ return getSalaryLexicon(locale).seniority[value];
179
+ }
180
+ const vocabulary = VOCABULARIES[locale] ?? EN_LABELS;
181
+ return vocabulary[value] ?? EN_LABELS[value] ?? value;
182
+ }
183
+
184
+ // src/format/ui-copy.ts
185
+ var EN2 = {
186
+ jobCard: {
187
+ featuredLabel: "Featured",
188
+ aiRankedLabel: "AI-ranked",
189
+ sortNewestLabel: "Most recent",
190
+ sortSalaryHighLabel: "Salary: high to low"
191
+ },
192
+ jobSearch: {
193
+ headingJobs: "Jobs",
194
+ keywordLabel: "Keyword",
195
+ keywordPlaceholder: "Search jobs\u2026",
196
+ locationLabel: "Location",
197
+ locationPlaceholder: "City or region",
198
+ workplacePlaceholder: "Workplace",
199
+ anyWorkplaceLabel: "Any workplace",
200
+ typePlaceholder: "Type",
201
+ anyTypeLabel: "Any type",
202
+ sortPlaceholder: "Sort",
203
+ loadMoreLabel: "Load more",
204
+ noJobsMatchText: "No jobs match \u2014 try clearing a filter."
205
+ },
206
+ jobDetail: {
207
+ categoriesHeading: "Categories",
208
+ skillsHeading: "Skills",
209
+ additionalDetailsHeading: "Additional details",
210
+ customFieldYesLabel: "Yes",
211
+ customFieldNoLabel: "No",
212
+ locationsLabel: "Locations",
213
+ workPermitsLabel: "Work permits",
214
+ timezonesLabel: "Timezones",
215
+ educationLabel: "Education",
216
+ experienceLabel: "Experience",
217
+ worldwideLabel: "Worldwide",
218
+ noExperienceRequiredLabel: "No experience required",
219
+ experienceYears: (years) => `${years}+ years`,
220
+ posted: (published) => `Posted ${published}`,
221
+ noDescriptionText: "No description provided.",
222
+ viewCompanyProfileLabel: "View company profile",
223
+ similarJobsHeading: "Similar jobs",
224
+ breadcrumbAriaLabel: "Breadcrumb"
225
+ },
226
+ apply: {
227
+ applyButtonText: "Apply for this job",
228
+ applyingLabel: "Applying\u2026",
229
+ applyOnEmployerSiteLabel: "Apply on employer site",
230
+ signInToApplyLabel: "Sign in to apply",
231
+ verifyEmailToApplyLabel: "Verify email to apply",
232
+ appliedViewApplicationsLabel: "Applied \u2014 view applications",
233
+ applicationSubmitError: "Something went wrong. Please try again."
234
+ },
235
+ alerts: {
236
+ jobAlertTitle: "Get job alerts",
237
+ jobAlertEmailPlaceholder: "you@example.com",
238
+ jobAlertButtonText: "Get alerts",
239
+ subscribingLabel: "Subscribing\u2026",
240
+ jobAlertSuccessToast: "Check your email to confirm your subscription.",
241
+ jobAlertDuplicateToast: "You're already subscribed to this alert.",
242
+ jobAlertErrorToast: "Something went wrong. Please try again.",
243
+ sectionAriaLabel: "Job alerts",
244
+ emailAriaLabel: "email",
245
+ submitAriaLabel: "get job alerts"
246
+ },
247
+ copyLink: {
248
+ copyLinkLabel: "Copy link",
249
+ copiedLabel: "Copied",
250
+ ariaLabel: "copy link"
251
+ },
252
+ salary: {
253
+ comparisonHeadlineAverage: "Average salary",
254
+ perYearSuffix: "/ year",
255
+ comparisonPercentile25Label: "25th percentile",
256
+ medianLabel: "Median",
257
+ comparisonPercentile75Label: "75th percentile",
258
+ basedOnLabel: "Based on",
259
+ seniorityTableHeaderLevel: "Level",
260
+ seniorityTableHeaderAvg: "Average",
261
+ boardBaselineLabel: "Board baseline",
262
+ seniorityTableHeaderDiff: "vs. board",
263
+ faqHeading: "Frequently asked questions"
264
+ },
265
+ nav: {
266
+ home: "Jobs",
267
+ companies: "Companies",
268
+ pricing: "Pricing",
269
+ talent: "Talent",
270
+ post: "Post a job",
271
+ blog: "Blog"
272
+ },
273
+ footer: {
274
+ forCandidatesHeading: "For Candidates",
275
+ forCompaniesHeading: "For Companies",
276
+ resourcesHeading: "Resources",
277
+ aboutHeading: "About",
278
+ websiteLabel: "Website",
279
+ aboutLabel: "About",
280
+ contactLabel: "Contact us",
281
+ locationsLabel: "Locations",
282
+ salariesLabel: "Salaries",
283
+ sitemapLabel: "Sitemap",
284
+ termsOfServiceLabel: "Terms of Service",
285
+ privacyPolicyLabel: "Privacy Policy",
286
+ cookiePolicyLabel: "Cookie Policy",
287
+ impressumLabel: "Impressum",
288
+ allRightsReservedText: "All rights reserved.",
289
+ copyrightPrefix: "\xA9 {{year}} {{board_name}}.",
290
+ poweredByText: "Powered by",
291
+ defaultDescription: "Discover the latest roles from {{board_name}}."
292
+ },
293
+ breadcrumbs: {
294
+ home: "Home",
295
+ jobs: "Jobs",
296
+ locations: "Locations",
297
+ salaries: "Salaries",
298
+ companies: "Companies",
299
+ skills: "Skills",
300
+ titles: "Titles",
301
+ blog: "Blog",
302
+ post: "Post a Job",
303
+ pricing: "Pricing",
304
+ about: "About",
305
+ impressum: "Impressum",
306
+ termsOfService: "Terms of Service",
307
+ privacyPolicy: "Privacy Policy",
308
+ cookiePolicy: "Cookie Policy",
309
+ talent: "Talent"
310
+ },
311
+ pagination: {
312
+ ariaLabel: "Pagination",
313
+ previousLabel: "Previous",
314
+ nextLabel: "Next"
315
+ },
316
+ blog: {
317
+ bylineLabel: "By",
318
+ readingTimeLabel: "min read",
319
+ searchLabel: "Search",
320
+ searchPlaceholder: "Search posts...",
321
+ clearButtonLabel: "Clear search",
322
+ tagFilterLabel: "Topics",
323
+ tagFilterAllLabel: "All",
324
+ emptyTitle: "No matching posts",
325
+ emptyDescription: "Try adjusting your search or clearing your filters.",
326
+ emptyResetLabel: "Clear filters"
327
+ },
328
+ entity: {
329
+ jobSingular: "job",
330
+ jobPlural: "jobs",
331
+ companySingular: "company",
332
+ companyPlural: "companies"
333
+ }
334
+ };
335
+ var DE2 = {
336
+ jobCard: {
337
+ featuredLabel: "Hervorgehoben",
338
+ aiRankedLabel: "KI-sortiert",
339
+ sortNewestLabel: "Neueste zuerst",
340
+ sortSalaryHighLabel: "Gehalt: absteigend"
341
+ },
342
+ jobSearch: {
343
+ headingJobs: "Jobs",
344
+ keywordLabel: "Stichwort",
345
+ keywordPlaceholder: "Jobtitel oder -beschreibungen suchen",
346
+ locationLabel: "Standort",
347
+ locationPlaceholder: "Stadt, Land oder Region",
348
+ workplacePlaceholder: "Arbeitsmodell",
349
+ anyWorkplaceLabel: "Alle Arbeitsmodelle",
350
+ typePlaceholder: "Anstellungsart",
351
+ anyTypeLabel: "Alle Anstellungsarten",
352
+ sortPlaceholder: "Sortieren",
353
+ loadMoreLabel: "Mehr laden",
354
+ noJobsMatchText: "Keine passenden Jobs \u2014 setze einen Filter zur\xFCck."
355
+ },
356
+ jobDetail: {
357
+ categoriesHeading: "Kategorien",
358
+ skillsHeading: "F\xE4higkeiten",
359
+ additionalDetailsHeading: "Weitere Details",
360
+ customFieldYesLabel: "Ja",
361
+ customFieldNoLabel: "Nein",
362
+ locationsLabel: "Standorte",
363
+ workPermitsLabel: "Arbeitserlaubnis",
364
+ timezonesLabel: "Zeitzonen",
365
+ educationLabel: "Ausbildung",
366
+ experienceLabel: "Berufserfahrung",
367
+ worldwideLabel: "Weltweit",
368
+ noExperienceRequiredLabel: "Keine Berufserfahrung erforderlich",
369
+ experienceYears: (years) => `${years}+ Jahre`,
370
+ posted: (published) => `Ver\xF6ffentlicht ${published}`,
371
+ noDescriptionText: "Keine Beschreibung vorhanden.",
372
+ viewCompanyProfileLabel: "Unternehmensprofil ansehen",
373
+ similarJobsHeading: "\xC4hnliche Jobs",
374
+ breadcrumbAriaLabel: "Seitenpfad"
375
+ },
376
+ apply: {
377
+ applyButtonText: "Jetzt bewerben",
378
+ applyingLabel: "Wird gesendet \u2026",
379
+ applyOnEmployerSiteLabel: "Beim Unternehmen bewerben",
380
+ signInToApplyLabel: "Zum Bewerben anmelden",
381
+ verifyEmailToApplyLabel: "E-Mail best\xE4tigen, um dich zu bewerben",
382
+ appliedViewApplicationsLabel: "Beworben \u2014 Bewerbungen ansehen",
383
+ applicationSubmitError: "Etwas ist schiefgelaufen. Bitte versuche es erneut."
384
+ },
385
+ alerts: {
386
+ jobAlertTitle: "Job-Benachrichtigungen erhalten",
387
+ jobAlertEmailPlaceholder: "name@beispiel.de",
388
+ jobAlertButtonText: "Abonnieren",
389
+ subscribingLabel: "Wird abonniert \u2026",
390
+ jobAlertSuccessToast: "\xDCberpr\xFCfe deine E-Mails, um dein Abonnement zu best\xE4tigen.",
391
+ jobAlertDuplicateToast: "Du hast diese Benachrichtigung bereits abonniert.",
392
+ jobAlertErrorToast: "Etwas ist schiefgelaufen. Bitte versuche es erneut.",
393
+ sectionAriaLabel: "Job-Benachrichtigungen",
394
+ emailAriaLabel: "E-Mail",
395
+ submitAriaLabel: "Job-Benachrichtigungen erhalten"
396
+ },
397
+ copyLink: {
398
+ copyLinkLabel: "Link kopieren",
399
+ copiedLabel: "Kopiert",
400
+ ariaLabel: "Link kopieren"
401
+ },
402
+ salary: {
403
+ comparisonHeadlineAverage: "Durchschnittsgehalt",
404
+ perYearSuffix: "/ Jahr",
405
+ comparisonPercentile25Label: "25. Perzentil",
406
+ medianLabel: "Median",
407
+ comparisonPercentile75Label: "75. Perzentil",
408
+ basedOnLabel: "Basierend auf",
409
+ seniorityTableHeaderLevel: "Erfahrungslevel",
410
+ seniorityTableHeaderAvg: "Durchschnitt",
411
+ boardBaselineLabel: "Board-Durchschnitt",
412
+ seniorityTableHeaderDiff: "vs. Board",
413
+ faqHeading: "H\xE4ufig gestellte Fragen"
414
+ },
415
+ nav: {
416
+ home: "Jobs",
417
+ companies: "Unternehmen",
418
+ pricing: "Preise",
419
+ talent: "Talente",
420
+ post: "Job ver\xF6ffentlichen",
421
+ blog: "Blog"
422
+ },
423
+ footer: {
424
+ forCandidatesHeading: "F\xFCr Kandidaten",
425
+ forCompaniesHeading: "F\xFCr Unternehmen",
426
+ resourcesHeading: "Ressourcen",
427
+ aboutHeading: "\xDCber uns",
428
+ websiteLabel: "Website",
429
+ aboutLabel: "\xDCber uns",
430
+ contactLabel: "Kontakt",
431
+ locationsLabel: "Standorte",
432
+ salariesLabel: "Geh\xE4lter",
433
+ sitemapLabel: "Sitemap",
434
+ termsOfServiceLabel: "Nutzungsbedingungen",
435
+ privacyPolicyLabel: "Datenschutzerkl\xE4rung",
436
+ cookiePolicyLabel: "Cookie-Richtlinie",
437
+ impressumLabel: "Impressum",
438
+ allRightsReservedText: "Alle Rechte vorbehalten.",
439
+ copyrightPrefix: "\xA9 {{year}} {{board_name}}.",
440
+ poweredByText: "Bereitgestellt von",
441
+ defaultDescription: "Entdecke die neuesten Stellen von {{board_name}}."
442
+ },
443
+ breadcrumbs: {
444
+ home: "Startseite",
445
+ jobs: "Jobs",
446
+ locations: "Standorte",
447
+ salaries: "Geh\xE4lter",
448
+ companies: "Unternehmen",
449
+ skills: "F\xE4higkeiten",
450
+ titles: "Berufsbezeichnungen",
451
+ blog: "Blog",
452
+ post: "Job ver\xF6ffentlichen",
453
+ pricing: "Preise",
454
+ about: "\xDCber uns",
455
+ impressum: "Impressum",
456
+ termsOfService: "Nutzungsbedingungen",
457
+ privacyPolicy: "Datenschutzerkl\xE4rung",
458
+ cookiePolicy: "Cookie-Richtlinie",
459
+ talent: "Talente"
460
+ },
461
+ pagination: {
462
+ ariaLabel: "Seitennummerierung",
463
+ previousLabel: "Zur\xFCck",
464
+ nextLabel: "Weiter"
465
+ },
466
+ blog: {
467
+ bylineLabel: "Von",
468
+ readingTimeLabel: "Minuten Lesezeit",
469
+ searchLabel: "Suche",
470
+ searchPlaceholder: "Artikel suchen...",
471
+ clearButtonLabel: "Suche leeren",
472
+ tagFilterLabel: "Themen",
473
+ tagFilterAllLabel: "Alle",
474
+ emptyTitle: "Keine passenden Artikel gefunden",
475
+ emptyDescription: "Versuche, deine Suche anzupassen oder die Filter zur\xFCckzusetzen.",
476
+ emptyResetLabel: "Filter zur\xFCcksetzen"
477
+ },
478
+ entity: {
479
+ jobSingular: "Job",
480
+ jobPlural: "Jobs",
481
+ companySingular: "Unternehmen",
482
+ companyPlural: "Unternehmen"
483
+ }
484
+ };
485
+ var FR = {
486
+ jobCard: {
487
+ featuredLabel: "\xC0 la une",
488
+ aiRankedLabel: "Classement IA",
489
+ sortNewestLabel: "Plus r\xE9centes",
490
+ sortSalaryHighLabel: "Salaire : d\xE9croissant"
491
+ },
492
+ jobSearch: {
493
+ headingJobs: "Offres d'emploi",
494
+ keywordLabel: "Mot-cl\xE9",
495
+ keywordPlaceholder: "Rechercher une offre\u2026",
496
+ locationLabel: "Lieu",
497
+ locationPlaceholder: "Ville ou r\xE9gion",
498
+ workplacePlaceholder: "Mode de travail",
499
+ anyWorkplaceLabel: "Tous les modes de travail",
500
+ typePlaceholder: "Type de contrat",
501
+ anyTypeLabel: "Tous les types",
502
+ sortPlaceholder: "Trier",
503
+ loadMoreLabel: "Voir plus",
504
+ noJobsMatchText: "Aucune offre ne correspond \u2014 essayez de retirer un filtre."
505
+ },
506
+ jobDetail: {
507
+ categoriesHeading: "Cat\xE9gories",
508
+ skillsHeading: "Comp\xE9tences",
509
+ additionalDetailsHeading: "Informations compl\xE9mentaires",
510
+ customFieldYesLabel: "Oui",
511
+ customFieldNoLabel: "Non",
512
+ locationsLabel: "Lieux",
513
+ workPermitsLabel: "Permis de travail",
514
+ timezonesLabel: "Fuseaux horaires",
515
+ educationLabel: "Formation",
516
+ experienceLabel: "Exp\xE9rience",
517
+ worldwideLabel: "Monde entier",
518
+ noExperienceRequiredLabel: "Aucune exp\xE9rience requise",
519
+ experienceYears: (years) => `${years}+ ans`,
520
+ posted: (published) => `Publi\xE9e ${published}`,
521
+ noDescriptionText: "Aucune description fournie.",
522
+ viewCompanyProfileLabel: "Voir le profil de l'entreprise",
523
+ similarJobsHeading: "Offres similaires",
524
+ breadcrumbAriaLabel: "Fil d'Ariane"
525
+ },
526
+ apply: {
527
+ applyButtonText: "Postuler \xE0 cette offre",
528
+ applyingLabel: "Envoi en cours\u2026",
529
+ applyOnEmployerSiteLabel: "Postuler sur le site de l'employeur",
530
+ signInToApplyLabel: "Connectez-vous pour postuler",
531
+ verifyEmailToApplyLabel: "V\xE9rifiez votre e-mail pour postuler",
532
+ appliedViewApplicationsLabel: "Candidature envoy\xE9e \u2014 voir mes candidatures",
533
+ applicationSubmitError: "Une erreur est survenue. Veuillez r\xE9essayer."
534
+ },
535
+ alerts: {
536
+ jobAlertTitle: "Recevoir des alertes emploi",
537
+ jobAlertEmailPlaceholder: "vous@exemple.fr",
538
+ jobAlertButtonText: "Activer les alertes",
539
+ subscribingLabel: "Abonnement en cours\u2026",
540
+ jobAlertSuccessToast: "V\xE9rifiez votre e-mail pour confirmer votre abonnement.",
541
+ jobAlertDuplicateToast: "Vous \xEAtes d\xE9j\xE0 abonn\xE9 \xE0 cette alerte.",
542
+ jobAlertErrorToast: "Une erreur est survenue. Veuillez r\xE9essayer.",
543
+ sectionAriaLabel: "Alertes emploi",
544
+ emailAriaLabel: "e-mail",
545
+ submitAriaLabel: "recevoir des alertes emploi"
546
+ },
547
+ copyLink: {
548
+ copyLinkLabel: "Copier le lien",
549
+ copiedLabel: "Copi\xE9",
550
+ ariaLabel: "copier le lien"
551
+ },
552
+ salary: {
553
+ comparisonHeadlineAverage: "Salaire moyen",
554
+ perYearSuffix: "/ an",
555
+ comparisonPercentile25Label: "25e percentile",
556
+ medianLabel: "M\xE9diane",
557
+ comparisonPercentile75Label: "75e percentile",
558
+ basedOnLabel: "Bas\xE9 sur",
559
+ seniorityTableHeaderLevel: "Niveau",
560
+ seniorityTableHeaderAvg: "Moyenne",
561
+ boardBaselineLabel: "R\xE9f\xE9rence du site",
562
+ seniorityTableHeaderDiff: "vs site",
563
+ faqHeading: "Questions fr\xE9quentes"
564
+ },
565
+ nav: {
566
+ home: "Offres",
567
+ companies: "Entreprises",
568
+ pricing: "Tarifs",
569
+ talent: "Talents",
570
+ post: "Publier une offre",
571
+ blog: "Blog"
572
+ },
573
+ footer: {
574
+ forCandidatesHeading: "Pour les candidats",
575
+ forCompaniesHeading: "Pour les entreprises",
576
+ resourcesHeading: "Ressources",
577
+ aboutHeading: "\xC0 propos",
578
+ websiteLabel: "Site web",
579
+ aboutLabel: "\xC0 propos",
580
+ contactLabel: "Nous contacter",
581
+ locationsLabel: "Lieux",
582
+ salariesLabel: "Salaires",
583
+ sitemapLabel: "Plan du site",
584
+ termsOfServiceLabel: "Conditions d'utilisation",
585
+ privacyPolicyLabel: "Politique de confidentialit\xE9",
586
+ cookiePolicyLabel: "Politique de cookies",
587
+ impressumLabel: "Mentions l\xE9gales",
588
+ allRightsReservedText: "Tous droits r\xE9serv\xE9s.",
589
+ copyrightPrefix: "\xA9 {{year}} {{board_name}}.",
590
+ poweredByText: "Propuls\xE9 par",
591
+ defaultDescription: "D\xE9couvrez les derni\xE8res offres de {{board_name}}."
592
+ },
593
+ breadcrumbs: {
594
+ home: "Accueil",
595
+ jobs: "Offres",
596
+ locations: "Lieux",
597
+ salaries: "Salaires",
598
+ companies: "Entreprises",
599
+ skills: "Comp\xE9tences",
600
+ titles: "Intitul\xE9s de poste",
601
+ blog: "Blog",
602
+ post: "Publier une offre",
603
+ pricing: "Tarifs",
604
+ about: "\xC0 propos",
605
+ impressum: "Mentions l\xE9gales",
606
+ termsOfService: "Conditions d'utilisation",
607
+ privacyPolicy: "Politique de confidentialit\xE9",
608
+ cookiePolicy: "Politique de cookies",
609
+ talent: "Talents"
610
+ },
611
+ pagination: {
612
+ ariaLabel: "Pagination",
613
+ previousLabel: "Pr\xE9c\xE9dent",
614
+ nextLabel: "Suivant"
615
+ },
616
+ blog: {
617
+ bylineLabel: "Par",
618
+ readingTimeLabel: "min de lecture",
619
+ searchLabel: "Recherche",
620
+ searchPlaceholder: "Rechercher un article...",
621
+ clearButtonLabel: "Effacer la recherche",
622
+ tagFilterLabel: "Th\xE8mes",
623
+ tagFilterAllLabel: "Tous",
624
+ emptyTitle: "Aucun article correspondant",
625
+ emptyDescription: "Essayez de modifier votre recherche ou de r\xE9initialiser les filtres.",
626
+ emptyResetLabel: "R\xE9initialiser les filtres"
627
+ },
628
+ entity: {
629
+ jobSingular: "offre",
630
+ jobPlural: "offres",
631
+ companySingular: "entreprise",
632
+ companyPlural: "entreprises"
633
+ }
634
+ };
635
+ var CATALOGS = { en: EN2, de: DE2, fr: FR };
636
+ function mergeGroup(group, overrides) {
637
+ if (!overrides) return group;
638
+ const out = { ...group };
639
+ for (const [key, value] of Object.entries(group)) {
640
+ if (typeof value !== "string") continue;
641
+ const override = overrides[key];
642
+ if (typeof override === "string" && override.trim() !== "") {
643
+ out[key] = override;
644
+ }
645
+ }
646
+ return out;
647
+ }
648
+ var GROUP_OVERRIDE_SOURCE = {
649
+ jobCard: "jobCardLabels",
650
+ jobSearch: "jobSearchLabels",
651
+ jobDetail: "jobCardLabels",
652
+ apply: "jobCardLabels",
653
+ alerts: "jobCardLabels",
654
+ copyLink: "jobCardLabels",
655
+ salary: "salaryLabels",
656
+ nav: "navLabels",
657
+ footer: "footerLabels",
658
+ breadcrumbs: "breadcrumbsLabels",
659
+ pagination: "globalPaginationLabels",
660
+ blog: "blogSharedLabels",
661
+ entity: "entityLabels"
662
+ };
663
+ function uiCopy(language, labels) {
664
+ const catalog = language && CATALOGS[language] || EN2;
665
+ if (!labels) return catalog;
666
+ const resolved = {};
667
+ for (const [group, source] of Object.entries(GROUP_OVERRIDE_SOURCE)) {
668
+ resolved[group] = mergeGroup(catalog[group], labels[source]);
669
+ }
670
+ return resolved;
671
+ }
672
+
95
673
  // src/filters/index.ts
96
674
  var REMOTE_OPTIONS = [
97
675
  "on_site",
@@ -121,14 +699,20 @@ var JOB_SORTS = [
121
699
  "salary_high"
122
700
  ];
123
701
  var DEFAULT_SORT = "relevance";
124
- function seniorityLabels(locale) {
125
- return getSalaryLexicon(locale).seniority;
702
+ function seniorityLabels(locale, labels) {
703
+ if (!labels?.jobCardLabels) return getSalaryLexicon(locale).seniority;
704
+ const out = {};
705
+ for (const seniority of SENIORITIES) {
706
+ out[seniority] = fieldLabel(locale, seniority, labels) ?? seniority;
707
+ }
708
+ return out;
126
709
  }
127
- function sortLabels(_locale) {
710
+ function sortLabels(locale, labels) {
711
+ const copy = uiCopy(locale, labels).jobCard;
128
712
  return {
129
- relevance: "AI-ranked",
130
- newest: "Most recent",
131
- salary_high: "Salary: high to low"
713
+ relevance: copy.aiRankedLabel,
714
+ newest: copy.sortNewestLabel,
715
+ salary_high: copy.sortSalaryHighLabel
132
716
  };
133
717
  }
134
718
  var SENIORITY_LOOKUP = new Set(SENIORITIES);
package/dist/format.d.mts CHANGED
@@ -1,5 +1,7 @@
1
- import { P as PublicJob, a as PublicJobCard, C as CustomFieldValues } from './jobs-Dmz8uexp.mjs';
2
- import { C as CustomFieldDefinition } from './board-BS8Ax7hz.mjs';
1
+ import { P as PublicJob, a as PublicJobCard, C as CustomFieldValues } from './jobs-Di4AV-02.mjs';
2
+ import { B as BoardLabelOverrides } from './ui-copy-rlfoH9P3.mjs';
3
+ export { A as AlertsCopy, a as ApplyCopy, b as BlogCopy, c as BreadcrumbsCopy, C as CopyLinkCopy, E as EntityCopy, F as FooterCopy, J as JobCardCopy, d as JobDetailCopy, e as JobSearchCopy, N as NavCopy, P as PUBLIC_LABEL_GROUPS, f as PaginationCopy, S as SalaryCopy, U as UiCopy, u as uiCopy } from './ui-copy-rlfoH9P3.mjs';
4
+ import { C as CustomFieldDefinition } from './board-BTVapQiL.mjs';
3
5
 
4
6
  /**
5
7
  * Date display helpers in the board language (required leading parameter,
@@ -41,15 +43,18 @@ declare function fullJobToCard(locale: string, job: PublicJob): PublicJobCard;
41
43
 
42
44
  /**
43
45
  * Display label for a job enum value (`remoteOption`, `employmentType`,
44
- * `seniority`) in the board language. Unknown values pass through unchanged
45
- * (enums grow additively within v1).
46
+ * `seniority`) in the board language, the board's stored operator
47
+ * overrides when the `labels` bag is passed. Unknown values pass through
48
+ * unchanged (enums grow additively within v1); unseeded languages fall back
49
+ * to the English source vocabulary.
46
50
  *
47
51
  * @example
48
52
  * fieldLabel('en', 'mid_level'); // "Mid-level"
49
53
  * fieldLabel('de', 'executive'); // "Führungskraft"
50
- * fieldLabel('de', 'full_time'); // "Full-time" (hosted parity: en-only vocab)
54
+ * fieldLabel('de', 'full_time'); // "Vollzeit"
55
+ * fieldLabel('de', 'full_time', board.labels); // operator override when set
51
56
  */
52
- declare function fieldLabel(locale: string, value: string | null): string | null;
57
+ declare function fieldLabel(locale: string, value: string | null, labels?: BoardLabelOverrides): string | null;
53
58
 
54
59
  /**
55
60
  * Location display labels for job cards and detail pages, in the board
@@ -265,4 +270,4 @@ type CustomFieldDisplayEntry = {
265
270
  };
266
271
  declare function resolveCustomFieldDisplay(definitions: CustomFieldDefinition[] | undefined, values: CustomFieldValues | undefined): CustomFieldDisplayEntry[];
267
272
 
268
- export { type CustomFieldDisplayEntry, type SalaryFrames, type SalaryLexicon, type SalaryTimeframeInput, type SalaryTimeframeOverrides, type SalaryTimeframeValue, type SeniorityKey, cardLocationLabel, companyIntro, fieldLabel, formatDate, formatMonthYear, formatPublishedRelativeDate, formatSalaryRange, fullJobToCard, getSalaryLexicon, locationLabel, resolveCustomFieldDisplay };
273
+ export { BoardLabelOverrides, type CustomFieldDisplayEntry, type SalaryFrames, type SalaryLexicon, type SalaryTimeframeInput, type SalaryTimeframeOverrides, type SalaryTimeframeValue, type SeniorityKey, cardLocationLabel, companyIntro, fieldLabel, formatDate, formatMonthYear, formatPublishedRelativeDate, formatSalaryRange, fullJobToCard, getSalaryLexicon, locationLabel, resolveCustomFieldDisplay };
package/dist/format.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- import { P as PublicJob, a as PublicJobCard, C as CustomFieldValues } from './jobs-Dmz8uexp.js';
2
- import { C as CustomFieldDefinition } from './board--nLjpneU.js';
1
+ import { P as PublicJob, a as PublicJobCard, C as CustomFieldValues } from './jobs-Di4AV-02.js';
2
+ import { B as BoardLabelOverrides } from './ui-copy-rlfoH9P3.js';
3
+ export { A as AlertsCopy, a as ApplyCopy, b as BlogCopy, c as BreadcrumbsCopy, C as CopyLinkCopy, E as EntityCopy, F as FooterCopy, J as JobCardCopy, d as JobDetailCopy, e as JobSearchCopy, N as NavCopy, P as PUBLIC_LABEL_GROUPS, f as PaginationCopy, S as SalaryCopy, U as UiCopy, u as uiCopy } from './ui-copy-rlfoH9P3.js';
4
+ import { C as CustomFieldDefinition } from './board-0yI5ZRJw.js';
3
5
 
4
6
  /**
5
7
  * Date display helpers in the board language (required leading parameter,
@@ -41,15 +43,18 @@ declare function fullJobToCard(locale: string, job: PublicJob): PublicJobCard;
41
43
 
42
44
  /**
43
45
  * Display label for a job enum value (`remoteOption`, `employmentType`,
44
- * `seniority`) in the board language. Unknown values pass through unchanged
45
- * (enums grow additively within v1).
46
+ * `seniority`) in the board language, the board's stored operator
47
+ * overrides when the `labels` bag is passed. Unknown values pass through
48
+ * unchanged (enums grow additively within v1); unseeded languages fall back
49
+ * to the English source vocabulary.
46
50
  *
47
51
  * @example
48
52
  * fieldLabel('en', 'mid_level'); // "Mid-level"
49
53
  * fieldLabel('de', 'executive'); // "Führungskraft"
50
- * fieldLabel('de', 'full_time'); // "Full-time" (hosted parity: en-only vocab)
54
+ * fieldLabel('de', 'full_time'); // "Vollzeit"
55
+ * fieldLabel('de', 'full_time', board.labels); // operator override when set
51
56
  */
52
- declare function fieldLabel(locale: string, value: string | null): string | null;
57
+ declare function fieldLabel(locale: string, value: string | null, labels?: BoardLabelOverrides): string | null;
53
58
 
54
59
  /**
55
60
  * Location display labels for job cards and detail pages, in the board
@@ -265,4 +270,4 @@ type CustomFieldDisplayEntry = {
265
270
  };
266
271
  declare function resolveCustomFieldDisplay(definitions: CustomFieldDefinition[] | undefined, values: CustomFieldValues | undefined): CustomFieldDisplayEntry[];
267
272
 
268
- export { type CustomFieldDisplayEntry, type SalaryFrames, type SalaryLexicon, type SalaryTimeframeInput, type SalaryTimeframeOverrides, type SalaryTimeframeValue, type SeniorityKey, cardLocationLabel, companyIntro, fieldLabel, formatDate, formatMonthYear, formatPublishedRelativeDate, formatSalaryRange, fullJobToCard, getSalaryLexicon, locationLabel, resolveCustomFieldDisplay };
273
+ export { BoardLabelOverrides, type CustomFieldDisplayEntry, type SalaryFrames, type SalaryLexicon, type SalaryTimeframeInput, type SalaryTimeframeOverrides, type SalaryTimeframeValue, type SeniorityKey, cardLocationLabel, companyIntro, fieldLabel, formatDate, formatMonthYear, formatPublishedRelativeDate, formatSalaryRange, fullJobToCard, getSalaryLexicon, locationLabel, resolveCustomFieldDisplay };