|
|
@@ -36,10 +36,10 @@
|
|
|
bool.TryParse((x["status"] ?? x["Status"])?.ToString(), out var active) && active);
|
|
|
var packageNameRaw = (activeReg?["productName"] ?? activeReg?["ProductName"])?.ToString() ?? "";
|
|
|
var packageName = string.IsNullOrWhiteSpace(packageNameRaw)
|
|
|
- ? "No active package"
|
|
|
+ ? Lang.AccountNoActivePackage
|
|
|
: packageNameRaw.Contains("DAYLY", StringComparison.OrdinalIgnoreCase)
|
|
|
|| packageNameRaw.Contains("DAILY", StringComparison.OrdinalIgnoreCase)
|
|
|
- ? "Daily Package"
|
|
|
+ ? Lang.AccountDailyPackage
|
|
|
: packageNameRaw.Replace("_", " ");
|
|
|
var packageTurns = (activeReg?["numberSpin"] ?? activeReg?["NumberSpin"])?.ToString() ?? "0";
|
|
|
var packageRegisterText = (activeReg?["registerTime"] ?? activeReg?["RegisterTime"])?.ToString();
|
|
|
@@ -56,31 +56,31 @@
|
|
|
@RenderBody()
|
|
|
|
|
|
<div class="account-menu-modal" data-account-menu aria-hidden="true">
|
|
|
- <button class="account-menu-backdrop" type="button" data-account-close aria-label="Close account menu"></button>
|
|
|
- <section class="account-menu-card" role="dialog" aria-modal="true" aria-label="Account">
|
|
|
- <div class="account-menu-ribbon"><span>ACCOUNT</span></div>
|
|
|
- <button class="account-menu-close" type="button" data-account-close aria-label="Close account menu">×</button>
|
|
|
+ <button class="account-menu-backdrop" type="button" data-account-close aria-label="@Lang.AccountCloseMenu"></button>
|
|
|
+ <section class="account-menu-card" role="dialog" aria-modal="true" aria-label="@Lang.AccountTitle">
|
|
|
+ <div class="account-menu-ribbon"><span>@Lang.AccountTitle</span></div>
|
|
|
+ <button class="account-menu-close" type="button" data-account-close aria-label="@Lang.AccountCloseMenu">×</button>
|
|
|
|
|
|
<div class="account-menu-content">
|
|
|
<section class="account-profile-card">
|
|
|
- <img class="account-profile-avatar" src="@accountAvatar" alt="Account avatar">
|
|
|
+ <img class="account-profile-avatar" src="@accountAvatar" alt="@Lang.AccountAvatarAlt">
|
|
|
<div>
|
|
|
- <small>ACCOUNT (PHONE NUMBER)</small>
|
|
|
+ <small>@Lang.AccountPhoneNumber</small>
|
|
|
<strong>@accountMsisdn</strong>
|
|
|
- <p>This is your default account.</p>
|
|
|
+ <p>@Lang.AccountDefaultDescription</p>
|
|
|
</div>
|
|
|
</section>
|
|
|
|
|
|
<section class="account-summary-card">
|
|
|
- <h2><span>▣</span> TOTAL THIS MONTH</h2>
|
|
|
+ <h2><span>▣</span> @Lang.AccountTotalThisMonth</h2>
|
|
|
<div class="account-summary-grid">
|
|
|
<div class="account-summary-item is-score">
|
|
|
<img src="~/kitty/assets/kitty-fall/coin.png" alt="">
|
|
|
- <span><small>POINTS</small><strong>@accountScore.ToString("N0")</strong><em>Total points</em></span>
|
|
|
+ <span><small>@Lang.AccountPoints</small><strong>@accountScore.ToString("N0")</strong><em>@Lang.AccountTotalPoints</em></span>
|
|
|
</div>
|
|
|
<div class="account-summary-item is-data">
|
|
|
<i class="account-metric-icon is-data">MB</i>
|
|
|
- <span><small>DATA (MB)</small><strong>@accountDataMb.ToString("N0")</strong><em>Total data won</em></span>
|
|
|
+ <span><small>@Lang.AccountDataMb</small><strong>@accountDataMb.ToString("N0")</strong><em>@Lang.AccountTotalDataWon</em></span>
|
|
|
</div>
|
|
|
<div class="account-summary-item is-loyalty">
|
|
|
<i class="account-metric-icon is-loyalty">🐾</i>
|
|
|
@@ -88,37 +88,39 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<p class="account-summary-note">
|
|
|
- <span>i</span> Points, data and rewards are accumulated from
|
|
|
- @monthStart.ToString("dd/MM") - @monthEnd.ToString("dd/MM") and reset monthly.
|
|
|
+ <span>i</span> @string.Format(Lang.AccountMonthlySummary, monthStart.ToString("dd/MM"), monthEnd.ToString("dd/MM"))
|
|
|
</p>
|
|
|
</section>
|
|
|
|
|
|
<section class="account-package-card">
|
|
|
<span class="account-section-icon">★</span>
|
|
|
<div class="account-package-info">
|
|
|
- <small>CURRENT PACKAGE @if (activeReg != null) { <b>ACTIVE SUBSCRIPTION</b> }</small>
|
|
|
+ <small>
|
|
|
+ @Lang.AccountCurrentPackage
|
|
|
+ @if (activeReg != null) { <b>@Lang.AccountActiveSubscription</b> }
|
|
|
+ </small>
|
|
|
<strong>@packageName</strong>
|
|
|
@if (activeReg != null)
|
|
|
{
|
|
|
<p>
|
|
|
- @packageTurns plays per day
|
|
|
+ @string.Format(Lang.AccountPlaysPerDay, packageTurns)
|
|
|
@if (hasPackageExpireTime)
|
|
|
{
|
|
|
- <span>• Expires @packageExpireTime.ToString("dd/MM/yyyy")</span>
|
|
|
+ <span>• @string.Format(Lang.AccountExpires, packageExpireTime.ToString("dd/MM/yyyy"))</span>
|
|
|
}
|
|
|
else if (isPackageRenewing)
|
|
|
{
|
|
|
- <span>• Auto renew</span>
|
|
|
+ <span>• @Lang.AccountAutoRenew</span>
|
|
|
}
|
|
|
</p>
|
|
|
@if (hasPackageRegisterTime)
|
|
|
{
|
|
|
- <em>Subscribed since @packageRegisterTime.ToString("dd/MM/yyyy")</em>
|
|
|
+ <em>@string.Format(Lang.AccountSubscribedSince, packageRegisterTime.ToString("dd/MM/yyyy"))</em>
|
|
|
}
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- <p>Subscription information is not available.</p>
|
|
|
+ <p>@Lang.AccountSubscriptionUnavailable</p>
|
|
|
}
|
|
|
</div>
|
|
|
</section>
|
|
|
@@ -126,30 +128,30 @@
|
|
|
<section class="account-cancel-card">
|
|
|
<span class="account-section-icon">☏</span>
|
|
|
<div>
|
|
|
- <small>HOW TO CANCEL</small>
|
|
|
- <p>If you want to cancel the service, please send</p>
|
|
|
- <strong>@cancelKeyword to @cancelShortCode</strong>
|
|
|
- <p>and follow the instructions.</p>
|
|
|
+ <small>@Lang.AccountHowToCancel</small>
|
|
|
+ <p>@Lang.AccountCancelInstruction</p>
|
|
|
+ <strong>@string.Format(Lang.AccountCancelCommand, cancelKeyword, cancelShortCode)</strong>
|
|
|
+ <p>@Lang.AccountFollowInstructions</p>
|
|
|
</div>
|
|
|
- <img src="~/kitty/assets/kitty-fall/account-cat-cancel.png" alt="Kitty Fall cat">
|
|
|
+ <img src="~/kitty/assets/kitty-fall/account-cat-cancel.png" alt="@Lang.AccountCancelCatAlt">
|
|
|
</section>
|
|
|
|
|
|
<section class="account-language-card">
|
|
|
<span class="account-section-icon">◎</span>
|
|
|
<div class="account-language-main">
|
|
|
- <small>LANGUAGE</small>
|
|
|
+ <small>@Lang.AccountLanguage</small>
|
|
|
<div class="account-language-options">
|
|
|
<button class="account-language-option @(currentCulture == "en" ? "active" : null)" type="button" onclick="changeLang('en')">
|
|
|
- <img src="~/kitty/assets/kitty-fall/flag-gb.svg" alt=""><strong>ENGLISH</strong><b>✓</b>
|
|
|
+ <img src="~/kitty/assets/kitty-fall/flag-gb.svg" alt=""><strong>@Lang.AccountEnglish</strong><b>✓</b>
|
|
|
</button>
|
|
|
<button class="account-language-option @(currentCulture == "vi" ? "active" : null)" type="button" onclick="changeLang('vi')">
|
|
|
- <img src="~/kitty/assets/kitty-fall/flag-mm.svg" alt=""><strong>MYANMAR</strong><b>✓</b>
|
|
|
+ <img src="~/kitty/assets/kitty-fall/flag-mm.svg" alt=""><strong>@Lang.AccountMyanmar</strong><b>✓</b>
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</section>
|
|
|
|
|
|
- <p class="account-security-note"><span>×</span>Your game experience and rewards are saved to this account securely.</p>
|
|
|
+ <p class="account-security-note"><span>×</span>@Lang.AccountSecurityNote</p>
|
|
|
</div>
|
|
|
</section>
|
|
|
</div>
|