mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 03:57:47 -04:00
move sourcesMultiple to locale
This commit is contained in:
parent
9a305c10eb
commit
395612cc25
2
locale/en/sourcesMultiple.js
Normal file
2
locale/en/sourcesMultiple.js
Normal file
@ -0,0 +1,2 @@
|
||||
export default {
|
||||
};
|
5
locale/pl/sourcesMultiple.js
Normal file
5
locale/pl/sourcesMultiple.js
Normal file
@ -0,0 +1,5 @@
|
||||
export default {
|
||||
'on&ona': ['genderneutralizacja', 'niebTlum', 'jurewicz', 'krem', 'krolowaZimy', 'mlotThora', 'statekUmarlych', 'starWarsKoPo', 'luBart1'],
|
||||
'ona&onu': ['liniaOporuMix'],
|
||||
'ono/jego&ono/jej': ['kazmierczak'],
|
||||
};
|
@ -121,7 +121,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { templates, sources, sourcesForMultipleForms, templateLibrary } from '../src/data'
|
||||
import { templates, sources, templateLibrary } from '../src/data'
|
||||
import sourcesForMultipleForms from '../data/sourcesMultiple';
|
||||
import { Source } from "../src/classes";
|
||||
import { head } from "../src/helpers";
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { Source, Example, NounTemplate, TemplateGroup, TemplateLibrary, Name, Person } from './classes'
|
||||
import { buildDict, buildList } from './helpers';
|
||||
import { parseTemplates, getTemplate } from './buildTemplate';
|
||||
import sourcesForMultipleForms from '../data/sourcesMultiple';
|
||||
|
||||
export const locales = {
|
||||
en: { name: 'English', url: 'https://en.pronouns.page' },
|
||||
@ -42,13 +43,6 @@ export const sources = buildDict(function* () {
|
||||
}
|
||||
});
|
||||
|
||||
// TODO move to locale
|
||||
export const sourcesForMultipleForms = {
|
||||
'on&ona': ['genderneutralizacja', 'niebTlum', 'jurewicz', 'krem', 'krolowaZimy', 'mlotThora', 'statekUmarlych', 'starWarsKoPo', 'luBart1'],
|
||||
'ona&onu': ['liniaOporuMix'],
|
||||
'ono/jego&ono/jej': ['kazmierczak'],
|
||||
}
|
||||
|
||||
export const getSources = (selectedTemplate) => {
|
||||
if (!selectedTemplate) {
|
||||
return {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user