12 lines
418 B
JavaScript
12 lines
418 B
JavaScript
// Generated, do not edit. sha256:9378a9bd304180d5b6df45747d1f56b526c6fa63df0636a0d2d53e119fdedfff
|
|
import { sharedText } from './i18n/index.js';
|
|
|
|
export function placeLabel(naam, code) {
|
|
const tekst = placeActions(code)[naam];
|
|
if (!tekst) return naam;
|
|
const eind = tekst.search(/[.:]/);
|
|
return (eind > 0 ? tekst.slice(0, eind) : tekst).trim();
|
|
}
|
|
|
|
export const placeActions = (code) => sharedText(code).places;
|