Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
feat(locale-data): add messages for item api data
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 16, 2018
1 parent 1ae9ed0 commit 9a722ac
Show file tree
Hide file tree
Showing 19 changed files with 649 additions and 0 deletions.
30 changes: 30 additions & 0 deletions locale-data/de/api_messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"Armour": "Rüstung",
"Attacks per Second": "Angriffe pro Sekunde",
"Bow": "Bogen",
"Chaos Damage": "Chaosschaden",
"Claw": "Klaue",
"Corrupted": "Verderbt",
"Critical Strike Chance": "Kritische Trefferchance",
"Dagger": "Dolch",
"Dex": "Ges",
"Elemental Damage": "Elementarschaden",
"Energy Shield": "Energieschild",
"Evasion Rating": "Ausweichwert",
"Int": "Int",
"Level": "Stufe",
"Mirrored": "Gespiegelt",
"One Handed Axe": "Einhandaxt",
"One Handed Mace": "Einhandstreitkolben",
"One Handed Sword": "Einhandschwert",
"Physical Damage": "Physischer Schaden",
"Requires": "Erfordert",
"Staff": "Stab",
"Str": "Str",
"Two Handed Axe": "Zweihandaxt",
"Two Handed Mace": "Zweihandstreitkolben",
"Two Handed Sword": "Zweihandschwert",
"Unidentified": "Nicht identifiziert",
"Wand": "Zauberstab",
"Weapon Range": "Waffenreichweite"
}
30 changes: 30 additions & 0 deletions locale-data/es/api_messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"Armour": "Armadura",
"Attacks per Second": "Ataques por Segundo",
"Bow": "Arco",
"Chaos Damage": "Daño de Caos",
"Claw": "Garra",
"Corrupted": "Corrupto",
"Critical Strike Chance": "Daño de Golpe Crítico",
"Dagger": "Daga",
"Dex": "Des",
"Elemental Damage": "Daño Elemental",
"Energy Shield": "Escudo de Energía",
"Evasion Rating": "Índice de Evasión",
"Int": "Int",
"Level": "Nivel",
"Mirrored": "Reflejado",
"One Handed Axe": "Hacha a Una Mano",
"One Handed Mace": "Maza a Una Mano",
"One Handed Sword": "Espada a Una Mano",
"Physical Damage": "Daño Físico",
"Requires": "Requiere",
"Staff": "Báculo",
"Str": "Fue",
"Two Handed Axe": "Hacha a Dos Manos",
"Two Handed Mace": "Maza a Dos Manos",
"Two Handed Sword": "Espada a Dos Manos",
"Unidentified": "Sin identificar",
"Wand": "Varita",
"Weapon Range": "Rango de Arma"
}
30 changes: 30 additions & 0 deletions locale-data/fr/api_messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"Armour": "Armure",
"Attacks per Second": "Attaques par seconde",
"Bow": "Arc",
"Chaos Damage": "Dégâts de chaos",
"Claw": "Griffe",
"Corrupted": "Corrompu",
"Critical Strike Chance": "Chances de coup critique",
"Dagger": "Dague",
"Dex": "Dex",
"Elemental Damage": "Dégâts élémentaires",
"Energy Shield": "Bouclier d'énergie",
"Evasion Rating": "Score d'Évasion",
"Int": "Int",
"Level": "Niveau",
"Mirrored": "Reflété",
"One Handed Axe": "Hache à une main",
"One Handed Mace": "Masse à une main",
"One Handed Sword": "Épée à une main",
"Physical Damage": "Dégâts physiques",
"Requires": "Nécessite",
"Staff": "Bâton",
"Str": "For",
"Two Handed Axe": "Hache à deux mains",
"Two Handed Mace": "Masse à deux mains",
"Two Handed Sword": "Épée à deux mains",
"Unidentified": "Non identifié",
"Wand": "Baguette",
"Weapon Range": "Allonge"
}
30 changes: 30 additions & 0 deletions locale-data/pt/api_messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"Armour": "Armadura",
"Attacks per Second": "Ataques por Segundo",
"Bow": "Arco",
"Chaos Damage": "Dano de Caos",
"Claw": "Garra",
"Corrupted": "Corrompido",
"Critical Strike Chance": "Chance de Crítico",
"Dagger": "Adaga",
"Dex": "Des",
"Elemental Damage": "Dano Elemental",
"Energy Shield": "Escudo de Energia",
"Evasion Rating": "Evasão",
"Int": "Int",
"Level": "Nível",
"Mirrored": "Espelhado",
"One Handed Axe": "Machado de Uma Mão",
"One Handed Mace": "Maça de Uma Mão",
"One Handed Sword": "Espada de Uma Mão",
"Physical Damage": "Dano Físico",
"Requires": "Requer",
"Staff": "Cajado",
"Str": "For",
"Two Handed Axe": "Machado de Duas Mãos",
"Two Handed Mace": "Maça de Duas Mãos",
"Two Handed Sword": "Espada de Duas Mãos",
"Unidentified": "Não Identificado",
"Wand": "Varinha",
"Weapon Range": "Alcance da Arma"
}
30 changes: 30 additions & 0 deletions locale-data/ru/api_messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"Armour": "Броня",
"Attacks per Second": "Атак в секунду",
"Bow": "Лук",
"Chaos Damage": "Урон хаосом",
"Claw": "Когти",
"Corrupted": "Оскверненный",
"Critical Strike Chance": "Шанс критического удара",
"Dagger": "Кинжал",
"Dex": "Ловк",
"Elemental Damage": "Урон от стихий",
"Energy Shield": "Энерг. щит",
"Evasion Rating": "Уклонение",
"Int": "Инт",
"Level": "Уровень",
"Mirrored": "Отзеркаленный",
"One Handed Axe": "Одноручный топор",
"One Handed Mace": "Одноручная булава",
"One Handed Sword": "Одноручный меч",
"Physical Damage": "Физический урон",
"Requires": "Требует",
"Staff": "Посох",
"Str": "Сила",
"Two Handed Axe": "Двуручный топор",
"Two Handed Mace": "Двуручная булава",
"Two Handed Sword": "Двуручный меч",
"Unidentified": "Неопознанный",
"Wand": "Жезл",
"Weapon Range": "Дальность оружия"
}
30 changes: 30 additions & 0 deletions locale-data/th/api_messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"Armour": "เกราะ",
"Attacks per Second": "การโจมตีต่อวินาที",
"Bow": "ธนู",
"Chaos Damage": "ความเสียหายจากเคออส",
"Claw": "กรงเล็บ",
"Corrupted": "Corrupted",
"Critical Strike Chance": "โอกาสจู่โจมคริติคอล",
"Dagger": "มีด",
"Dex": "Dex",
"Elemental Damage": "ความเสียหายจากธาตุ",
"Energy Shield": "โล่พลังงาน",
"Evasion Rating": "อัตราการหลบหลีก",
"Int": "Int",
"Level": "เลเวล",
"Mirrored": "สะท้อน",
"One Handed Axe": "ขวานมือเดียว",
"One Handed Mace": "กระบองมือเดียว",
"One Handed Sword": "ดาบมือเดียว",
"Physical Damage": "ความเสียหายทางกายภาพ",
"Requires": "ต้องการ",
"Staff": "ไม้เท้า",
"Str": "Str",
"Two Handed Axe": "ขวานสองมือ",
"Two Handed Mace": "กระบองสองมือ",
"Two Handed Sword": "ดาบสองมือ",
"Unidentified": "ยังไม่ได้ตรวจสอบ",
"Wand": "คทา",
"Weapon Range": "ระยะโจมตีของอาวุธ"
}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --list-different \"src/**/*.ts\"",
"generate-locale-data:clean": "rimraf \"locale-data/**/*.json\"",
"generate-locale-data-api": "node --harmony_async_iteration scripts/api/createFromApi && node scripts/api/createFromTranslate",
"postgenerate-locale-data-api": "prettier --write \"locale-data/**/api_messages.json\"",
"generate-locale-data": "yarn run parse-locale-data && yarn run process-locale-data",
"generate-skill-meta": "node scripts/generateSkillMeta",
"postgenerate-skill-meta": "prettier --write src/translate/skill_meta.json",
Expand Down Expand Up @@ -59,7 +61,10 @@
"@types/jest": "^23.0.0",
"@types/node": "^9.3.0",
"coveralls": "^3.0.0",
"dot-prop": "^4.2.0",
"jest": "^23.0.0",
"limiter": "^1.1.3",
"mkdirp": "^0.5.1",
"moo": "^0.4.3",
"nearley": "^2.11.0",
"poe-mods": "^1.8.0",
Expand Down
1 change: 1 addition & 0 deletions scripts/api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tmp
14 changes: 14 additions & 0 deletions scripts/api/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const path = require('path');

const LOCALE_DATA_DIR = path.join(__dirname, '../../locale-data');
const TMP_DIR = path.join(__dirname, 'tmp/messages');
const LOCALES = [
{ short: 'pt', code: 'pt_BR', subdomain: 'br' },
{ short: 'ru', code: 'ru_RU' },
{ short: 'th', code: 'th_TH' },
{ short: 'de', code: 'de_DE' },
{ short: 'fr', code: 'fr_FR' },
{ short: 'es', code: 'es_ES' }
];

module.exports = { LOCALE_DATA_DIR, LOCALES, TMP_DIR };
Loading

0 comments on commit 9a722ac

Please sign in to comment.