Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
update translations, styles, and vendors
Browse files Browse the repository at this point in the history
  • Loading branch information
dsifford committed Sep 30, 2017
1 parent 91e138f commit 8a2fdb4
Show file tree
Hide file tree
Showing 7 changed files with 52,568 additions and 50,336 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ Translations for this plugin can be completed and submitted [here](https://poedi
<!-- TRANSLATION_STATUS_START -->
Language | Contributors | % Complete
-------- | ------------ | ----------
Chinese (simplified) `zh-CN` | fishfree | ![Progress](http://progressed.io/bar/99)
Polish `pl` | Krzysztof Ruchniewicz | ![Progress](http://progressed.io/bar/95)
German `de` | Karina, Mathias Micheel | ![Progress](http://progressed.io/bar/94)
Spanish (AR) `es-ar` | Lucas | ![Progress](http://progressed.io/bar/94)
Chinese (simplified) `zh-CN` | fishfree | ![Progress](http://progressed.io/bar/98)
Polish `pl` | Krzysztof Ruchniewicz | ![Progress](http://progressed.io/bar/94)
German `de` | Karina, Mathias Micheel | ![Progress](http://progressed.io/bar/93)
Spanish (AR) `es-ar` | Lucas | ![Progress](http://progressed.io/bar/93)
Portuguese `pt` | Alexandre Rodrigues | ![Progress](http://progressed.io/bar/58)
Arabic `ar` | Ezz El Dean | ![Progress](http://progressed.io/bar/10)
Danish `da` | Dan Bilbo Christensen | ![Progress](http://progressed.io/bar/0)
Expand Down
8 changes: 4 additions & 4 deletions lib/scripts/update-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as fs from 'fs';
import { request } from 'https';
import * as path from 'path';

const oldData = require('../src/vendor/citation-styles.json');
const oldData = require('../../src/vendor/citation-styles.json');

interface GithubFiles {
object: {
Expand Down Expand Up @@ -144,9 +144,9 @@ function parseStyleObj(obj: StyleResponse): StyleData {
};
}

function getNewStyles(before: StyleObj[], after: StyleObj[]): string[] {
function getNewStyles(before: StyleData, after: StyleObj[]): string[] {
const newlyAddedStyles = new Set<string>();
const beforeLabels = new Set(before.map(s => s.label));
const beforeLabels = new Set(before.styles.map(s => s.label));
for (const style of after) {
if (beforeLabels.has(style.label)) {
continue;
Expand All @@ -168,7 +168,7 @@ async function main() {
console.log('================ New Styles Added ================');
console.log(newStyles.join('\n'));
fs.writeFileSync(
path.resolve(__dirname, '../src/vendor/', 'citation-styles.json'),
path.resolve(__dirname, '../../src/vendor/', 'citation-styles.json'),
JSON.stringify(newData, null, 4),
);
}
Expand Down
2 changes: 0 additions & 2 deletions lib/types/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,3 @@ declare module 'react-virtualized-select';
declare module 'rollbar-sourcemap-webpack-plugin';
declare module 'rollbar/dist/rollbar.umd';
declare module 'uglify-es';
declare module 'puppeteer';
declare module 'puppeteer/DeviceDescriptors';
214 changes: 18 additions & 196 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8a2fdb4

Please sign in to comment.