mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-08-03 19:17:07 -04:00
9 lines
322 B
TypeScript
9 lines
322 B
TypeScript
import type { Config } from '~/locale/config.ts';
|
|
|
|
export default (config: Config, paths: string[]): string[] => {
|
|
const prefixes = [config.pronouns.prefix || '', ...config.pronouns.sentence?.prefixes || []];
|
|
return paths.flatMap((path) => {
|
|
return prefixes.map((prefix) => `${prefix}${path}`);
|
|
});
|
|
};
|