<?php


namespace WPSocialReviews\App\Services;

use WPSocialReviews\Framework\Support\Arr;

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

class TranslationString
{
    public static function getStrings()
    {
        $translations = GlobalSettings::getTranslations();

        $i18n = array(
            'Subscribers' => Arr::get($translations, 'subscribers') ?: __('Subscribers', 'wp-social-reviews'),
            'Following' => Arr::get($translations, 'following') ?: __('Following', 'wp-social-reviews'),
            'Followers' => Arr::get($translations, 'followers') ?: __('Followers', 'wp-social-reviews'),
            'Videos' => Arr::get($translations, 'videos') ?: __('Videos', 'wp-social-reviews'),
            'Views' => Arr::get($translations, 'views') ?: __('Views', 'wp-social-reviews'),
            'Tweets' => Arr::get($translations, 'tweets') ?: __('Tweets', 'wp-social-reviews'),
            'Likes' => Arr::get($translations, 'people_like_this') ?: __('Likes', 'wp-social-reviews'),
            'Posts' => Arr::get($translations, 'posts') ?: __('Posts', 'wp-social-reviews'),
            'Where you want to leave a review' => Arr::get($translations, 'leave_a_review') ?: __('Where you want to leave a review', 'wp-social-reviews'),
            'Recommends' => Arr::get($translations, 'recommends') ?: __('Recommends', 'wp-social-reviews'),
            'Does not recommend' => Arr::get($translations, 'does_not_recommend') ?: __('Does not recommend', 'wp-social-reviews'),
            'On' => Arr::get($translations, 'on') ?: __('On', 'wp-social-reviews'),
            'Read all reviews' => Arr::get($translations, 'read_all_reviews') ?: __('Read all reviews', 'wp-social-reviews'),
            'Read More' => Arr::get($translations, 'read_more') ?: __('Read More', 'wp-social-reviews'),
            'Read Less' => Arr::get($translations, 'read_less') ?: __('Read Less', 'wp-social-reviews'),
            'Comments' => Arr::get($translations, 'comments') ?: __('Comments', 'wp-social-reviews'),
            'View on Facebook' => Arr::get($translations, 'view_on_fb') ?: __('View on Facebook', 'wp-social-reviews'),
            'View on Instagram' => Arr::get($translations, 'view_on_ig') ?: __('View on Instagram', 'wp-social-reviews'),
            'View on TikTok' => Arr::get($translations, 'view_on_tiktok') ?: __('View on TikTok', 'wp-social-reviews'),
            'Likes' => Arr::get($translations, 'likes') ?: __('Likes', 'wp-social-reviews'),
            'People Responded' => Arr::get($translations, 'people_responded') ?: __('People Responded', 'wp-social-reviews'),
            'Online Event' => Arr::get($translations, 'online_event') ?: __('Online Event', 'wp-social-reviews'),
            'Interested' => Arr::get($translations, 'interested') ?: __('Interested', 'wp-social-reviews'),
            'Going' => Arr::get($translations, 'going') ?: __('Going', 'wp-social-reviews'),
            'Went' => Arr::get($translations, 'went') ?: __('Went', 'wp-social-reviews'),
            'AI-Generated Summary' => Arr::get($translations, 'ai_generated_summary') ?: __('AI-Generated Summary', 'wp-social-reviews'),
            'All Platforms' => __('All Platforms', 'wp-social-reviews'),
            'Social Feeds' => __('Social Feeds', 'wp-social-reviews'),
            'Business Reviews' => __('Business Reviews', 'wp-social-reviews'),
            'Social Chats' => __('Social Chats', 'wp-social-reviews'),
            'Search Platforms' => __('Search Platforms', 'wp-social-reviews'),
            'Screen Options' => __('Screen Options', 'wp-social-reviews'),
            'Enabled' => __('Enabled', 'wp-social-reviews'),
            'Disabled' => __('Disabled', 'wp-social-reviews'),
            'All Enabled' => __('All Enabled', 'wp-social-reviews'),
            'None Enabled' => __('None Enabled', 'wp-social-reviews'),
            'Some Enabled' => __('Some Enabled', 'wp-social-reviews'),
            'Error Logs' => __('Error Logs', 'wp-social-reviews'),
            'Reset Error Logs' => __('Reset Error Logs', 'wp-social-reviews'),
            'See All' => __('See All', 'wp-social-reviews'),
            'Would you like to clear all the errors stored in the error log' => __('Would you like to clear all the errors stored in the error log', 'wp-social-reviews'),
            'Select Bubble Icon' => __('Select Bubble Icon', 'wp-social-reviews')
        );

        // Merge auto-extracted admin strings first (lower priority),
        // then overlay with user-configurable strings from $i18n above.
        $merged = array_merge(TranslationStrings::getAdminStrings(), $i18n);

        return apply_filters('wpsocialreviews/translation_strings_i18n', $merged);
    }

}