mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
9 lines
307 B
TypeScript
9 lines
307 B
TypeScript
import { ru } from "../../src/lib/i18n/ru";
|
|
|
|
/** RU page title from the dictionary; RU text is never hardcoded in specs. */
|
|
export function ruPageTitle(slug: string): string {
|
|
const title = ru.pages?.[slug]?.title;
|
|
if (!title) throw new Error(`ru dictionary has no pages.${slug}.title`);
|
|
return title;
|
|
}
|