mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-04-08 00:16:05 +02:00
Add chinese translation
Based on https://github.com/dyxang/Fantasy-Map-Generator-Chinese
This commit is contained in:
parent
7eeb1f76c3
commit
c5f1577c4b
12 changed files with 3359 additions and 980 deletions
|
|
@ -329,7 +329,9 @@ export const getAdjective = (nounToBeAdjective: string) => {
|
|||
},
|
||||
],
|
||||
};
|
||||
for (const rule of adjectivizationRules[options.language]) {
|
||||
const rules =
|
||||
adjectivizationRules[options.language] ?? adjectivizationRules.en;
|
||||
for (const rule of rules) {
|
||||
if (P(rule.probability) && rule.condition.test(nounToBeAdjective)) {
|
||||
return rule.action(nounToBeAdjective);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue