Fake Disk Formatting

Microsoft Windows [Version 10.0.14393]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\


WARNING, ALL DATA ON NON-REMOVABLE DISK
DRIVE C: WILL BE LOST!

Formatting C:
77% complete

Cleaned Disk Setup Program
FDISK Options

Successfully Erased Disk Drives: 1

Choose one of the following:
1. Create Dos partition of Logical DOS Drive
2. Set active partition
3. Delete partition or Logical DOS Drive
4. Display partition information

Enter choice: [ ]

Don’t worry, your disk is intact!

THIS IS JUST A PRANK BRO!

Click here to return to the home page
Exit full screen with F11

_______________________________________________________________________
|_____|_____|_____|__/__|___]_|___/_|___|_|_\__|_|__/_____|____|___||_|_|
|___|_|_____|_____|__\__|_____|__\__|___|_|__\_|_|__\___._|____|___||_|_|

i18next documentation

i18next documentation

Overview
Introduction

Comparison to others

Getting started

API

Configuration Options

Supported Frameworks

Plugins and Utils

For Enterprises

Translation Function
Essentials

Interpolation

Formatting

Plurals

Nesting

Context

Objects and Arrays

Principles
Namespaces

Fallback

Plugins

How to
Add or Load Translations

FAQ

Misc
JSON Format

Creating own Plugins

Migration Guide

Powered by GitBook
Have an account? Sign in

Formatting

Last updated 5 months ago
Edit on GitHub
Contents
  • Formatting
  • Basic
  • Additional options

Formatting

You can define a function to handle formattings. Beside formatting numbers or dates you can use this to define custom formattings.

You can add formatting using moment.js and numeral.js or the intl api .

Basic

As a sample using momentjs to format dates.

keys

"key": "The current date is date, MM/DD/YYYY",
"key2": "text, uppercase just uppercased"

Init i18next with a format function:

i18next.init(
interpolation:
format: function(value, format, lng)
if (format === 'uppercase') return value.toUpperCase();
if(value instanceof Date) return moment(value).format(format);
return value;
);

sample

i18next.t('key', date: new Date() );
// -> "The current date is 07/13/2016"
i18next.t('key2', text: 'can you hear me' );
// => "CAN YOU HEAR ME just uppercased"

Keep the language on moment in sync with i18next by listening to the change language event:

i18next.on('languageChanged', function(lng)
moment.locale(lng);
);

Additional options

Prefix/Suffix for interpolation and other options can be overridden in init option or by passing additional options to t function:

sample

i18next.init(
interpolation: ...
);
i18next.t('key',
interpolation: ...
);

option

default

description

format

noop function

format function function format(value, format, lng) {}

formatSeparator

','

used to separate format from interpolation value

While there are a lot of options going with the defaults should get you covered.

Translation Function – Previous
Interpolation
Next – Translation Function
Plurals

Contents
  • Formatting
  • Basic
  • Additional options