Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add deep archimedea language data #566

Merged
merged 4 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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');
SlayerOrnstein marked this conversation as resolved.
Show resolved Hide resolved
});
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
SlayerOrnstein marked this conversation as resolved.
Show resolved Hide resolved
*/
export default {
faction,
Expand Down Expand Up @@ -362,4 +365,7 @@ export default {
toTitleCase,
translateFocus,
translatePolarity,
archonShard,
archonShardColor,
archonShardUpgradeType,
};