add missing translations to latestEnnoblements.js and extendedVillageProfile.js

This commit is contained in:
Dawid Wysokiński 2020-08-13 17:25:22 +02:00
parent 2ef4ca71d4
commit a4cd38466b
8 changed files with 19 additions and 9 deletions

View File

@ -174,6 +174,7 @@ const translations = {
total: 'Łącznie',
possibleLoyalty: 'Prawdopodobne poparcie',
ennobledAt: 'Podbita o',
never: 'Nigdy',
action: {
showEnnoblements: 'Pokaż przejęcia',
countIncomingSupport: 'Policz nadchodzące wsparcie'
@ -186,6 +187,7 @@ const translations = {
allySupport: 'Ally support',
total: 'Total',
possibleLoyalty: 'Possible loyalty',
never: 'Never',
ennobledAt: 'Ennobled at',
action: {
showEnnoblements: 'Show ennoblements',
@ -801,7 +803,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
// @namespace https://github.com/tribalwarshelp/scripts
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
// @version 0.6.8
// @version 0.6.9
// @description Extended Village Profile
// @author Kichiyaki http://dawid-wysokinski.pl/
// @match *://*/game.php*screen=info_village*
@ -1048,7 +1050,7 @@ const renderAdditionalInfo = function renderAdditionalInfo() {
renderTr({
id: 'ennobledAt',
title: "".concat(translations.ennobledAt, ":"),
data: firstEnnoblement ? (0, _formatDate.default)(firstEnnoblement.ennobledAt) : 'Never'
data: firstEnnoblement ? (0, _formatDate.default)(firstEnnoblement.ennobledAt) : translations.never
});
};

View File

@ -328,7 +328,9 @@ const translations = {
showLatestEnnoblements: 'Pokaż najnowsze przejęcia',
village: 'Wioska',
newOwner: 'Nowy właściciel',
newOwnerTribe: 'Plemię nowego właściciela',
oldOwner: 'Poprzedni właściciel',
oldOwnerTribe: 'Plemię poprzedniego właściciela',
date: 'Data',
filters: 'Filtry',
apply: 'Zastosuj',
@ -381,7 +383,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
// @namespace https://github.com/tribalwarshelp/scripts
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/latestEnnoblements.js
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/latestEnnoblements.js
// @version 1.0.3
// @version 1.0.4
// @description Show the latest ennoblements
// @author Kichiyaki http://dawid-wysokinski.pl/ | Icon author *GD*
// @match *://*/game.php*

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -15,7 +15,7 @@ import showEnnoblementsPopup from './common/showEnnoblementsPopup';
// @namespace https://github.com/tribalwarshelp/scripts
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/extendedVillageProfile.js
// @version 0.6.8
// @version 0.6.9
// @description Extended Village Profile
// @author Kichiyaki http://dawid-wysokinski.pl/
// @match *://*/game.php*screen=info_village*
@ -384,7 +384,9 @@ const renderAdditionalInfo = ({ config, ennoblements } = {}) => {
renderTr({
id: 'ennobledAt',
title: `${translations.ennobledAt}:`,
data: firstEnnoblement ? formatDate(firstEnnoblement.ennobledAt) : 'Never',
data: firstEnnoblement
? formatDate(firstEnnoblement.ennobledAt)
: translations.never,
});
};

View File

@ -7,6 +7,7 @@ const translations = {
total: 'Łącznie',
possibleLoyalty: 'Prawdopodobne poparcie',
ennobledAt: 'Podbita o',
never: 'Nigdy',
action: {
showEnnoblements: 'Pokaż przejęcia',
countIncomingSupport: 'Policz nadchodzące wsparcie',
@ -19,6 +20,7 @@ const translations = {
allySupport: 'Ally support',
total: 'Total',
possibleLoyalty: 'Possible loyalty',
never: 'Never',
ennobledAt: 'Ennobled at',
action: {
showEnnoblements: 'Show ennoblements',

View File

@ -3,7 +3,9 @@ const translations = {
showLatestEnnoblements: 'Pokaż najnowsze przejęcia',
village: 'Wioska',
newOwner: 'Nowy właściciel',
newOwnerTribe: 'Plemię nowego właściciela',
oldOwner: 'Poprzedni właściciel',
oldOwnerTribe: 'Plemię poprzedniego właściciela',
date: 'Data',
filters: 'Filtry',
apply: 'Zastosuj',

View File

@ -16,7 +16,7 @@ import loadTranslations from './i18n/latestEnnoblements';
// @namespace https://github.com/tribalwarshelp/scripts
// @updateURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/latestEnnoblements.js
// @downloadURL https://raw.githubusercontent.com/tribalwarshelp/scripts/master/dist/latestEnnoblements.js
// @version 1.0.3
// @version 1.0.4
// @description Show the latest ennoblements
// @author Kichiyaki http://dawid-wysokinski.pl/ | Icon author *GD*
// @match *://*/game.php*