Skip to content

Instantly share code, notes, and snippets.

Kolena Studio
Notifications 0
Store
Community
You & Friends
Support
Account details
Store preferences
Change language
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"
@ashour
ashour / PlayerMovement.cs
Created February 21, 2021 19:16
Unity MonoBehaviour for 2D Platform Player Movement
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;
<p>@Smart.Format(Resources.ReplyCount, 0)</p>
<!-- ☝️ outputs "لا توجد ردود" -->
<p>@Smart.Format(Resources.ReplyCount, 1)</p>
<!-- ☝️ outputs "رد واحد" -->
<p>@Smart.Format(Resources.ReplyCount, 2)</p>
<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>
<p>@Html.Raw(Resources.LimitedTimeOffer)</p>
<p>@Resources.LimitedTimeOffer</p>
@String.Format(Resources.HelloUser, CurrentUser.Name)
<!DOCTYPE html>
<html>
<!-- ... -->
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a
href="#"
class="dropdown-toggle"
data-toggle="dropdown"
role="button"
aria-haspopup="true"
aria-expanded="false"
>