move sourcesMultiple to locale

This commit is contained in:
Avris 2020-10-08 20:08:51 +02:00
parent ec0db91ba9
commit cca005d807
4 changed files with 10 additions and 8 deletions

View File

@ -0,0 +1,2 @@
export default {
};

View 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'],
};

View File

@ -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";

View File

@ -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 {};