<?php

/**
 * LolaCore — Translatable strings for the settings page template.
 *
 * @package LolaCore
 * @license GPL-2.0-or-later
 */

declare(strict_types=1);

namespace LolaCore\I18n;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Settings page copy helpers for templates and JS localization.
 */
class SettingsUiStrings {

	/**
	 * Strings for lolacore-settings.js confirmations and status messages.
	 *
	 * @return array<string, string>
	 */
	public static function forScript(): array {
		return array(
			'settingsSaved'       => \__( 'Settings saved.', 'lolacore' ),
			'saveFailed'          => \__( 'Could not save settings. Try again.', 'lolacore' ),
			'domainsSaved'        => \__( 'Domains updated.', 'lolacore' ),
			'safetySaved'         => \__( 'Safety settings saved.', 'lolacore' ),
			'confirmAction'       => \__( 'Confirm Action', 'lolacore' ),
			'areYouSure'          => \__( 'Are you sure?', 'lolacore' ),
			'cancel'              => \__( 'Cancel', 'lolacore' ),
			'confirm'             => \__( 'Confirm', 'lolacore' ),
			'wipeTitle'           => \__( 'Wipe All Memory', 'lolacore' ),
			'wipeBody'            => \__( 'Are you sure you want to wipe ALL of Lola\'s memory? This cannot be undone.', 'lolacore' ),
			'wipeTokenPrompt'     => \__( 'Type WIPE to confirm:', 'lolacore' ),
			'wipePlaceholder'     => \__( 'WIPE', 'lolacore' ),
			'wipeMemory'          => \__( 'Wipe Memory', 'lolacore' ),
			'unsavedChanges'      => \__( 'Unsaved changes', 'lolacore' ),
		);
	}
}
