View src ▸ i18n.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from "vue" | |
import VueI18n from "vue-i18n" | |
import getBrowserLocale from "@/util/i18n/get-browser-locale" | |
import { supportedLocalesInclude } from "./util/i18n/supported-locales" | |
import { | |
getChoiceIndex, | |
setDefaultChoiceIndexGet | |
} from "./util/i18n/choice-index-for-plural" | |
import dateTimeFormats from "@/locales/date-time-formats" | |
import numberFormats from "@/locales/number-formats" |
View PlayerMovement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
[RequireComponent(typeof(Rigidbody2D))] | |
public class PlayerMovement : MonoBehaviour | |
{ | |
public static Action<Vector2, bool> OnMovementCalculated; | |
[SerializeField] private float _speed = 7; | |
[SerializeField] private float _jumpForce = 1000; |
View SmarFormatExampleAr.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>@Smart.Format(Resources.ReplyCount, 0)</p> | |
<!-- ☝️ outputs "لا توجد ردود" --> | |
<p>@Smart.Format(Resources.ReplyCount, 1)</p> | |
<!-- ☝️ outputs "رد واحد" --> | |
<p>@Smart.Format(Resources.ReplyCount, 2)</p> |
View SmartFormatExampleEn.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>@Smart.Format(Resources.ReplyCount, 1)</p> | |
<!-- ☝️ outputs "1 reply" --> | |
<p>@Smart.Format(Resources.ReplyCount, 0)</p> | |
<!-- ☝️ outputs "0 replies" --> | |
<p>@Smart.Format(Resources.ReplyCount, 2)</p> |
View HtmlRawExample.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>@Html.Raw(Resources.LimitedTimeOffer)</p> |
View HtmlOutputExample.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>@Resources.LimitedTimeOffer</p> |
View StringInterpolationExample.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@String.Format(Resources.HelloUser, CurrentUser.Name) |
View Controllers > HomeController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Heaventure.Data; | |
using System.Web.Mvc; | |
namespace Heaventure.Controllers | |
{ | |
public class HomeController : BaseController | |
{ | |
// ... | |
} | |
} |
NewerOlder