mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00

* refactor: remove SourcedTrack based audio player and utilize mediakit playback system * feat: implement local (loopback) server to resolve stream source and leverage the media_kit playback API * feat: add source change support and re-add prefetching tracks * fix: assign lastId when track fetch completes regardless of error * chore: remove print statements * fix: remote queue not working * fix: increase mpv network timeout to reduce auto-skipping * fix: do not pre-fetch local tracks * fix(proxy-playlist): reset collections on load * chore: fix lint warnings * fix(mobile): player overlay should not be visible when the player is not playing * chore: fix typo in turkish translation * cd: checkout PR branch * cd: upgrade flutter version * chore: fix lint errors
29 lines
680 B
Dart
29 lines
680 B
Dart
// ignore_for_file: avoid_print
|
|
|
|
import 'dart:convert';
|
|
import 'dart:io';
|
|
|
|
void main(List<String> args) async {
|
|
final translatedFile =
|
|
jsonDecode(await File('tm.json').readAsString()) as Map<String, dynamic>;
|
|
|
|
for (final MapEntry(:key, :value) in translatedFile.entries) {
|
|
print('Updating locale: $key');
|
|
final file = File('lib/l10n/app_$key.arb');
|
|
|
|
final fileContent =
|
|
jsonDecode(await file.readAsString()) as Map<String, dynamic>;
|
|
|
|
final newContent = {
|
|
...fileContent,
|
|
...value,
|
|
};
|
|
|
|
await file.writeAsString(
|
|
const JsonEncoder.withIndent(' ').convert(newContent),
|
|
);
|
|
|
|
print('✅ Updated locale: $key');
|
|
}
|
|
}
|