mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
chore: clear lint rules warns: comments, tests
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user