Skip to content
Open
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
3 changes: 2 additions & 1 deletion api/_rss-allowed-domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,5 +323,6 @@ export default [
"rss.libsyn.com",
"feeds.megaphone.fm",
"rss.art19.com",
"idp.nature.com"
"idp.nature.com",
"www.delfi.lt",
];
1 change: 1 addition & 0 deletions public/offline.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ <h1 id="t-title">You're Offline</h1>
it: { title: "Sei Offline", msg: "World Monitor richiede una connessione Internet per i dati di intelligence in tempo reale.", retry: "Riprova" },
ja: { title: "オフラインです", msg: "World Monitorはリアルタイムインテリジェンスデータのためにインターネット接続が必要です。", retry: "再試行" },
ko: { title: "오프라인입니다", msg: "World Monitor는 실시간 인텔리전스 데이터를 위해 인터넷 연결이 필요합니다.", retry: "다시 시도" },
lt: { title: "Esate neprisijungę", msg: "„World Monitor" reikia interneto ryšio realiojo laiko žvalgybos duomenims.", retry: "Bandyti dar kartą" },
nl: { title: "Je bent offline", msg: "World Monitor heeft een internetverbinding nodig voor real-time inlichtingengegevens.", retry: "Opnieuw proberen" },
pl: { title: "Jesteś offline", msg: "World Monitor wymaga połączenia internetowego do otrzymywania danych wywiadowczych w czasie rzeczywistym.", retry: "Ponów próbę" },
pt: { title: "Você está offline", msg: "World Monitor requer uma conexão com a internet para dados de inteligência em tempo real.", retry: "Tentar novamente" },
Expand Down
3 changes: 2 additions & 1 deletion scripts/shared/rss-allowed-domains.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,5 +320,6 @@
"rss.libsyn.com",
"feeds.megaphone.fm",
"rss.art19.com",
"idp.nature.com"
"idp.nature.com",
"www.delfi.lt"
]
7 changes: 6 additions & 1 deletion scripts/shared/source-tiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,5 +262,10 @@
"ArXiv AI": 4,
"AI News": 4,
"Layoffs News": 4,
"GloNewswire (Taiwan)": 4
"GloNewswire (Taiwan)": 4,
"LRT": 1,
"Delfi LT": 2,
"15min": 2,
"Lrytas": 2,
"Verslo Žinios": 2
}
2 changes: 1 addition & 1 deletion scripts/sync-offline-translations.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import { readFileSync, writeFileSync } from 'node:fs';
import path from 'node:path';

const LOCALES = ['en', 'ar', 'bg', 'cs', 'de', 'el', 'es', 'fr', 'hu', 'it', 'ja', 'ko', 'nl', 'pl', 'pt', 'ro', 'ru', 'sv', 'th', 'tr', 'vi', 'zh'];
const LOCALES = ['ar', 'bg', 'cs', 'de', 'el', 'en', 'es', 'fr', 'hu', 'it', 'ja', 'ko', 'lt', 'nl', 'pl', 'pt', 'ro', 'ru', 'sv', 'th', 'tr', 'vi', 'zh'];
const OFFLINE_HTML = 'public/offline.html';
const LOCALES_DIR = 'src/locales';

Expand Down
4 changes: 2 additions & 2 deletions scripts/translate-locales.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ const onlyArg = [...args].find(a => a.startsWith('--only='));
const onlyLocales = onlyArg ? onlyArg.slice('--only='.length).split(',') : null;

const ROOT = proTest ? 'pro-test/src/locales' : 'src/locales';
const LOCALES = ['ar', 'bg', 'cs', 'de', 'el', 'es', 'fr', 'hu', 'it', 'ja', 'ko', 'nl', 'pl', 'pt', 'ro', 'ru', 'sv', 'th', 'tr', 'vi', 'zh'];
const LOCALES = ['ar', 'bg', 'cs', 'de', 'el', 'es', 'fr', 'hu', 'it', 'ja', 'ko', 'lt', 'nl', 'pl', 'pt', 'ro', 'ru', 'sv', 'th', 'tr', 'vi', 'zh'];
const LANG_NAMES = {
ar: 'Arabic', bg: 'Bulgarian', cs: 'Czech', de: 'German', el: 'Greek',
es: 'Spanish', fr: 'French', hu: 'Hungarian', it: 'Italian', ja: 'Japanese',
ko: 'Korean', nl: 'Dutch', pl: 'Polish', pt: 'Portuguese (Brazil)',
ro: 'Romanian', ru: 'Russian', sv: 'Swedish', th: 'Thai', tr: 'Turkish',
lt: 'Lithuanian', ro: 'Romanian', ru: 'Russian', sv: 'Swedish', th: 'Thai', tr: 'Turkish',
vi: 'Vietnamese', zh: 'Simplified Chinese',
};
const BATCH_SIZE = 50;
Expand Down
6 changes: 6 additions & 0 deletions server/worldmonitor/news/v1/_feeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ export const VARIANT_FEEDS: Record<string, Record<string, ServerFeed[]>> = {
{ name: 'Híradó', url: gnLocale('site:hirado.hu when:2d', 'hu', 'HU', 'HU:hu'), lang: 'hu' },
{ name: 'Portfolio.hu', url: 'https://portfolio.hu/rss/all.xml', lang: 'hu' },
{ name: 'ATV', url: 'https://www.atv.hu/rss', lang: 'hu' },
// Lithuanian (LT)
{ name: 'LRT', url: gnLocale('site:lrt.lt when:2d', 'lt', 'LT', 'LT:lt'), lang: 'lt' },
{ name: 'Delfi LT', url: 'https://www.delfi.lt/rss/feeds/rss.xml', lang: 'lt' },
{ name: '15min', url: gnLocale('site:15min.lt when:2d', 'lt', 'LT', 'LT:lt'), lang: 'lt' },
{ name: 'Lrytas', url: gnLocale('site:lrytas.lt when:2d', 'lt', 'LT', 'LT:lt'), lang: 'lt' },
{ name: 'Verslo Žinios', url: gnLocale('site:vz.lt when:2d', 'lt', 'LT', 'LT:lt'), lang: 'lt' },
],
middleeast: [
{ name: 'BBC Middle East', url: 'https://feeds.bbci.co.uk/news/world/middle_east/rss.xml' },
Expand Down
3 changes: 2 additions & 1 deletion shared/rss-allowed-domains.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,5 +320,6 @@
"rss.libsyn.com",
"feeds.megaphone.fm",
"rss.art19.com",
"idp.nature.com"
"idp.nature.com",
"www.delfi.lt"
]
7 changes: 6 additions & 1 deletion shared/source-tiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,5 +262,10 @@
"ArXiv AI": 4,
"AI News": 4,
"Layoffs News": 4,
"GloNewswire (Taiwan)": 4
"GloNewswire (Taiwan)": 4,
"LRT": 1,
"Delfi LT": 2,
"15min": 2,
"Lrytas": 2,
"Verslo Žinios": 2
}
8 changes: 8 additions & 0 deletions src/config/feeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export const SOURCE_TYPES: Record<string, SourceType> = {
'Telex': 'mainstream', 'Index.hu': 'mainstream', 'HVG': 'mainstream',
'444.hu': 'mainstream', '24.hu': 'mainstream', 'Híradó': 'mainstream',
'ATV': 'mainstream', 'Portfolio.hu': 'market',
// Lithuanian (LT)
'LRT': 'mainstream', 'Delfi LT': 'mainstream', '15min': 'mainstream', 'Lrytas': 'mainstream', 'Verslo Žinios': 'market',
'SVT Nyheter': 'mainstream', 'Dagens Nyheter': 'mainstream', 'Svenska Dagbladet': 'mainstream',
// Brazilian Addition
'Brasil Paralelo': 'mainstream',
Expand Down Expand Up @@ -278,6 +280,12 @@ const FULL_FEEDS: Record<string, Feed[]> = {
{ name: 'in.gr', url: rss('https://www.in.gr/feed/'), lang: 'el' },
{ name: 'iefimerida', url: rss('https://www.iefimerida.gr/rss.xml'), lang: 'el' },
{ name: 'Proto Thema', url: rss('https://news.google.com/rss/search?q=site:protothema.gr+when:2d&hl=el&gl=GR&ceid=GR:el'), lang: 'el' },
// Lithuanian (LT)
{ name: 'LRT', url: rss('https://news.google.com/rss/search?q=site:lrt.lt+when:2d&hl=lt&gl=LT&ceid=LT:lt'), lang: 'lt' },
{ name: 'Delfi LT', url: rss('https://www.delfi.lt/rss/feeds/rss.xml'), lang: 'lt' },
{ name: '15min', url: rss('https://news.google.com/rss/search?q=site:15min.lt+when:2d&hl=lt&gl=LT&ceid=LT:lt'), lang: 'lt' },
{ name: 'Lrytas', url: rss('https://news.google.com/rss/search?q=site:lrytas.lt+when:2d&hl=lt&gl=LT&ceid=LT:lt'), lang: 'lt' },
{ name: 'Verslo Žinios', url: rss('https://news.google.com/rss/search?q=site:vz.lt+when:2d&hl=lt&gl=LT&ceid=LT:lt'), lang: 'lt' },
// Russia & Ukraine (independent sources)
{ name: 'BBC Russian', url: rss('https://feeds.bbci.co.uk/russian/rss.xml'), lang: 'ru' },
{ name: 'Meduza', url: rss('https://meduza.io/rss/all'), lang: 'ru' },
Expand Down
Loading
Loading