move sourcesMultiple to locale
This commit is contained in:
parent
ec0db91ba9
commit
cca005d807
|
@ -0,0 +1,2 @@
|
||||||
|
export default {
|
||||||
|
};
|
|
@ -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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<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 { Source } from "../src/classes";
|
||||||
import { head } from "../src/helpers";
|
import { head } from "../src/helpers";
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { Source, Example, NounTemplate, TemplateGroup, TemplateLibrary, Name, Person } from './classes'
|
import { Source, Example, NounTemplate, TemplateGroup, TemplateLibrary, Name, Person } from './classes'
|
||||||
import { buildDict, buildList } from './helpers';
|
import { buildDict, buildList } from './helpers';
|
||||||
import { parseTemplates, getTemplate } from './buildTemplate';
|
import { parseTemplates, getTemplate } from './buildTemplate';
|
||||||
|
import sourcesForMultipleForms from '../data/sourcesMultiple';
|
||||||
|
|
||||||
export const locales = {
|
export const locales = {
|
||||||
en: { name: 'English', url: 'https://en.pronouns.page' },
|
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) => {
|
export const getSources = (selectedTemplate) => {
|
||||||
if (!selectedTemplate) {
|
if (!selectedTemplate) {
|
||||||
return {};
|
return {};
|
||||||
|
|
Reference in New Issue