Skip to content

Commit

Permalink
feat: add deep archimedea language data (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayerOrnstein authored Oct 8, 2024
1 parent f5abe14 commit d0c64bd
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 3 deletions.
54 changes: 53 additions & 1 deletion data/languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -18774,5 +18774,57 @@
},
"/Lotus/Language/JadeShadows/JadeShadowsEventScore": {
"value": "Volatile Motes Collection Progress"
},
"OperatorLockout": {
"value": "Transference Distortion",
"description": "Transference into Operator and Drifter is blocked."
},
"AbilityLockout": {
"value": "Powerless",
"description": "All Abilities are disabled until the squad kills 50 enemies."
},
"TimeDilation": {
"value": "Abbreviated Abilities",
"description": "Ability durations reduced by 50%."
},
"Framecurse": {
"value": "Framecurse syndrome",
"description": "Activating an Ability inflicts 50 damage upon you."
},
"FragileNodes": {
"value": "Unified Purpose",
"description": "Enemies can target and destry Conduits."
},
"LostInTranslation": {
"value": "Glyph Inflation",
"description": "The security system requires twice as many Vosphene Glyphs to activate."
},
"InfiniteTide": {
"value": "Relentless Tide",
"description": "The Fragmented Tide never stops attacking."
},
"AntiMaterialWeapons": {
"value": "Commanding Culverins",
"description": "Rogue Culverins equip weapons that deal 5x Damage to Overguard and Necramechs."
},
"AcceleratedEnemies": {
"value": "Bold Venture",
"description": "Enemies deal -15% Damage and take +15% Damage but gain +15% Movement Speed, Attack Speed, and Fire Rate."
},
"Deflectors": {
"value": "Fortified Foes",
"description": "Guardian Eximus units may be encountered, including Guardian Eximus Necramechs."
},
"PointBlank": {
"value": "Myopic Munitions",
"description": "Enemies will only take damage if a player is within 15m of them."
},
"ShieldedFoes": {
"value": "Bolstered Belligerents",
"description": "All enemies have Overguard equal to 50% of their max health."
},
"Voidburst": {
"value": "Postmortal Surges",
"description": "Slain enemies burts with Void enerhy."
}
}
}
5 changes: 3 additions & 2 deletions test/utilities/translation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ describe('translation', () => {
});
describe('archonShardColor()', () => {
it("should return a translation of the key if it's found in the data", () => {
archonShardColor('ACC_BLUE', 'en').should.equal('Azure');
archonShardColor('ACC_BLUE', 'es').should.equal('Azure');
});
it("should return the key if it's not found in the data", () => {
archonShardColor('notfound').should.equal('notfound');
Expand All @@ -526,7 +526,8 @@ describe('translation', () => {
it("should return a translation of the key if it's found in the data", () => {
archonShardUpgradeType(
'ACC_BLUE',
'/Lotus/Upgrades/Invigorations/ArchonCrystalUpgrades/ArchonCrystalUpgradeWarframeHealthMax'
'/Lotus/Upgrades/Invigorations/ArchonCrystalUpgrades/ArchonCrystalUpgradeWarframeHealthMax',
'es'
).should.equal('+150% Health');
});
it("should return the key if it's not found in the data", () => {
Expand Down
6 changes: 6 additions & 0 deletions tools/translation.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ export const translatePolarity = (pol = '') => valMapping(pol, polarityMap);
* @property {function} toTitleCase - Format provided string as titlecase
* @property {function} translateFocus - Translate focus schools
* @property {function} translatePolarity - Translate polarities
* @property {function} archonShard - Converts archon shard names
* @property {function} archonShardColor - Converts archon shard names to in-game color values
* @property {function} archonShardUpgradeType - Convert archon shard upgrade type
*/
export default {
faction,
Expand Down Expand Up @@ -362,4 +365,7 @@ export default {
toTitleCase,
translateFocus,
translatePolarity,
archonShard,
archonShardColor,
archonShardUpgradeType,
};

0 comments on commit d0c64bd

Please sign in to comment.