halkyon/packages/halkyon_ui/lib/l10n/halkyon_ui_localizations_en.dart
Tizian 「ティツィアーン」 3f441cbc98
feat: the rail opens into a sidebar with labels from expanded windows on
Decided by the developer on 9 and 10 Nov 2026: phones keep the bar,
medium windows (600 to 840 dp) the rail alone, and from 840 dp a toggle
at the rail's foot opens it into a sidebar 256 dp wide, as Proton
Drive's: the app named beside its icon, each tab its label beside its
icon, the icons where the rail had them, so nothing moves under the
pointer. Its labels come in one after another, top to bottom, all at once
where animations are off. Open or closed is kept per device, in
halkyon_app's Look (look.json, `sidebar`), which Learn keeps in its
DeviceSettings (`sidebarOpen`), as it does the appearance and language.

NavigationFrame takes sidebarOpen and onSidebarChanged (no toggle without
it), and sidebarSections, what the app lists below the tabs, which Todo's
favourites and projects will be. The closed rail keeps Flutter's widget,
its toggle pinned at the foot (trailingAtBottom); the open one is the
frame's own, as the staggered labels need. Learn, Todo, Train and
Meditate keep the choice.

Whats-New: In wide windows, the button at the foot of the side rail opens it into a sidebar with names, and it stays open.
Whats-New-De: In breiten Fenstern öffnet der Knopf unten an der Seitenleiste sie mit Namen, und sie bleibt offen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-11-10 18:04:09 +01:00

117 lines
2.5 KiB
Dart

// ignore: unused_import
import 'package:intl/intl.dart' as intl;
import 'halkyon_ui_localizations.dart';
// ignore_for_file: type=lint
/// The translations for English (`en`).
class HalkyonUiLocalizationsEn extends HalkyonUiLocalizations {
HalkyonUiLocalizationsEn([String locale = 'en']) : super(locale);
@override
String get brand => 'Halkyon';
@override
String get close => 'Close';
@override
String get cancel => 'Cancel';
@override
String get undo => 'Undo';
@override
String get dragToReorder => 'Drag to reorder';
@override
String get reorder => 'Reorder';
@override
String get reorderDone => 'Done';
@override
String get requiredField => 'Required';
@override
String get decrease => 'Decrease';
@override
String get increase => 'Increase';
@override
String get typeANumber => 'Type a number';
@override
String get gone =>
'This no longer exists. It may have been deleted on another device.';
@override
String get moreInfo => 'More info';
@override
String get copiedToClipboard => 'Copied to clipboard';
@override
String get copy => 'Copy';
@override
String paletteColorName(String name) {
String _temp0 = intl.Intl.selectLogic(
name,
{
'carrot': 'Carrot',
'cerise': 'Cerise',
'cobalt': 'Cobalt',
'copper': 'Copper',
'enzian': 'Enzian',
'fern': 'Fern',
'forest': 'Forest',
'ocean': 'Ocean',
'olive': 'Olive',
'pacific': 'Pacific',
'pickle': 'Pickle',
'pine': 'Pine',
'pink': 'Pink',
'plum': 'Plum',
'purple': 'Purple',
'reef': 'Reef',
'sahara': 'Sahara',
'slateblue': 'Slate blue',
'soil': 'Soil',
'strawberry': 'Strawberry',
'other': '$name',
},
);
return '$_temp0';
}
@override
String colorPickerLabel(String color) {
return 'Colour: $color';
}
@override
String get explain => 'What\'s this?';
@override
String get openSidebar => 'Open sidebar';
@override
String get closeSidebar => 'Close sidebar';
}
/// The translations for English, as used in the United Kingdom (`en_GB`).
class HalkyonUiLocalizationsEnGb extends HalkyonUiLocalizationsEn {
HalkyonUiLocalizationsEnGb() : super('en_GB');
}
/// The translations for English, as used in the United States (`en_US`).
class HalkyonUiLocalizationsEnUs extends HalkyonUiLocalizationsEn {
HalkyonUiLocalizationsEnUs() : super('en_US');
@override
String colorPickerLabel(String color) {
return 'Color: $color';
}
}