20 Commits

Author SHA1 Message Date
Martin Raifer
6f0e87ea44 use nodejs's built-in fetch in build scripts 2024-03-14 15:56:49 +01:00
Martin Raifer
ef5e6c1032 lint 2023-07-12 13:02:01 +02:00
Martin Raifer
1d47aea365 npm run translations 2023-07-12 12:50:27 +02:00
Martin Raifer
8215c2283d remove code which is not needed anymore
this is now handled in the id-tagging-schema repo
2022-11-18 16:57:17 +01:00
Martin Raifer
17a1ab2e29 lint 2022-11-15 18:22:42 +01:00
Martin Raifer
88d7d7f050 upgrade translation fetcher to transifex API v3
see https://www.transifex.com/blog/2020/transifex-api-version-3/
2022-11-15 17:21:50 +01:00
Bryan Housel
97ed56bc3a s/colors/chalk
https://www.bleepingcomputer.com/news/security/dev-corrupts-npm-libs-colors-and-faker-breaking-thousands-of-apps/
2022-01-10 23:52:29 -05:00
Milos Brzakovic
d7c772c8ea Fix for translation - YAML.load 2021-07-09 15:27:29 +02:00
Quincy Morgan
c4b61ebc99 fix spelling 2020-12-01 11:32:45 -05:00
Quincy Morgan
baabd81987 Unbundle id-tagging-schema data and translations
Update for id-tagging-schema 2.0.0
2020-12-01 11:14:14 -05:00
Quincy Morgan
ea0e5a9a32 Write the languages.json file in build_data.js instead of update_locales.js (re: #8165) 2020-11-06 17:38:41 -05:00
Quincy Morgan
4c85e1664c Switch to node-request for transifex (re: #7959) 2020-09-27 20:27:36 -04:00
Quincy Morgan
7ab9f268d9 Don't fetch the English strings if the preferred locale has 100% coverage (close #7994) 2020-09-15 16:09:08 -04:00
Quincy Morgan
8ecada3b79 Move languageNames and scriptNames data to the individual locale files instead of always loading them via locales.json (re: #7994) 2020-09-15 14:41:56 -04:00
Quincy Morgan
01aa237857 Fix lint errors 2020-06-18 09:06:52 -04:00
Quincy Morgan
373dd965a6 Enable loading transifex credentials as environment variables 2020-06-17 18:12:59 -04:00
Quincy Morgan
a1af118f0e Ensure locales and presets are loaded before the UI loads (close #7406)
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Bryan Housel
e633f1b69e npm run translations (locale files are minified now) 2020-02-21 12:23:44 -05:00
Bryan Housel
567eeac587 Make several data external instead of bundled:
Also dist/data/* contains minified files now

These are now external and will fetch as needed:
-export { dataAddressFormats } from './address-formats.json';
-export { dataDeprecated } from './deprecated.json';
-export { dataDiscarded } from './discarded.json';
-export { dataLanguages } from './languages.json';
-export { dataPhoneFormats } from './phone-formats.json';
-export { dataShortcuts } from './shortcuts.json';
-export { dataTerritoryLanguages } from './territory-languages.json';
2020-01-28 22:21:31 -05:00
Bryan Housel
ce7cac6738 Move all the build scripts into scripts/ folder, ES6ify more stuff 2020-01-28 15:00:23 -05:00