Bedrock Wiki
  • Discord
  • Contribute
  • bedrock.dev
  • MS Learn
Beginner's Guide
  • Guide
    • 1. Introduction
      guide
    • 2. Add-Ons Explained
    • 3. Software & Preparation
    • 4. Project Setup
    • 5. Create a Custom Item
    • 6. Create a Custom Entity
    • 7. Blockbench: Modeling, Texturing & Animating
    • 8. Adding a Loot Table, Spawn Rule & Crafting Recipe
  • Extra
    • a. Understanding JSON
    • b. Download Example Packs
    • c. Troubleshooting
      help
    • d. Advanced Manifest
    • e. Format Versions
    • f. Project Setup Android
Animation Controllers
  • Intro to Animation Controllers
    guide
  • Entity Commands
  • AFK Detector
  • Death Commands
  • Molang into Scoreboard
  • Respawn Commands
Blocks
  • General
    • Intro to Blocks
      guide
    • Block Components
    • Block Tags
    • Block States
    • Block Traits
    • Block Permutations
    • Block Events
      Scripts
    • Block Event Migration
      help
    • Blocks as Items
    • Troubleshooting Blocks
      help
  • Visuals
    • Block Culling
    • Block Models
      guide
    • Block Texture Animation
    • Block Texture Variation
    • Block Tinting
  • Tutorials
    • Applying Constant Effects
      Scripts
    • Avoiding State Limit
    • Fake Blocks
    • Ore Loot Tables
      Scripts
    • Precise Interaction
      Scripts
    • Precise Rotation
      Scripts
    • Rotatable Blocks
  • Vanilla Re-Creations
    • Custom Crops
      Scripts
    • Custom Glass
    • Custom Glazed Terracotta
    • Custom Trapdoors
      Scripts
  • Documentation
    • Block Format History
    • Block Shapes
    • Block Sounds
    • Vanilla Block Models
Commands
  • General
    • Intro to Command Blocks
    • Functions
    • Block States
    • Coordinate System
    • NBT Commands
    • Scoreboard Operations
    • Understanding Selectors
  • Commands
    • Damage
    • Execute
    • Playanimation
    • Playsound
  • On Event Systems
    • On Player First Join
    • On Player Join
    • On Player Leave
    • On Player Death
    • On Player Respawn
    • On First World Load
  • Scoreboard Systems
    • Entity Counter
    • Scoreboard Timers
    • Comparing And Retrieving Scores
  • Techniques
    • Execute Logic Gates
    • MBE - Max's Block Entity
    • FMBE - A New Way to Create Display Entities
    • Look Detection
    • Movement Detections
    • Orbital Camera
  • Useful Creations
    • Custom Crafter
    • Multiplayer Position Rearrangement
      function
Concepts
  • contents.json
  • Emojis & Symbols
  • Molang
  • Namespaces
  • Overwriting Assets
  • Raw Text
  • Shaders
  • Sounds
  • Subpacks
  • Text and Localization
  • Texture Atlases
  • textures_list.json
Documentation
  • Shared Constructs
  • Advanced Molang
  • File Types
  • Fog IDs
  • Material Configuration Description
  • Menu Categories
  • Molang Queries
  • Pack Folder Structure
  • Sound Definitions
  • Vanilla Materials
Entities
  • General
    • Intro to Entities BP
      guide
    • Intro to Entities RP
      guide
    • Troubleshooting Entities
      help
    • Entity Events
    • Entity Properties
    • NPC Dialogues
    • Render Controllers
    • Spawn Rules
  • Tutorials
    • Convert Points Between Any Space (World, Entity, Bones)
    • Creating Boats
    • Detecting Other Entities
    • Disabling Team Damage
    • Dummy Entities
    • Entity Attacks
    • Entity Holds Item
    • Entity Movement
    • Entity Timers
    • Flying Entities
    • Introduction to AOE Clouds
    • Invulnerable Entities
    • Look at Entity
    • Sleeping Entities
    • Solid Entities
    • Spawning Tamed Entities
      Scripts
    • Village Mechanic
  • Documentation
    • Dummy Components
    • Non-Mob Runtime Identifiers
    • Projectiles
    • Runtime Identifiers
    • Vanilla Usage Components
    • Vanilla Usage Spawn Rules
Items
  • General
    • Intro to Items
      guide
    • Item Components
    • Item Tags
    • Item Events
      Scripts
    • Item Event Migration
      help
    • Troubleshooting Items
      help
  • Tutorials
    • Custom Armor
    • Custom Food
      Scripts
    • Custom Pottery Sherds
    • Custom Weapons
    • Equipment-Based Commands
    • High Resolution Items
    • Spawning Items
    • Throwable Items
  • Documentation
    • Enchantments
    • Attachables
    • Item Format History
    • Numerical Item IDs
    • Vanilla Item Identifiers
    • Vanilla Usage Components
JSON UI
  • General
    • Intro to JSON UI
      guide
    • Best Practices
      guide
  • Tutorials
    • Adding HUD Elements
    • Aseprite Animations
    • Buttons and Toggles
    • Modifying Server Forms
    • Preserve Title Texts
    • String to Number
  • Documentation
    • JSON UI Documentation
Loot, Recipes & Trading
  • General
    • Trading Behavior
  • Documentation
    • Loot Tables
    • Trade Tables
    • Recipes
    • Item Functions
  • Tutorials
    • Randomized Structure Loot
Meta
  • Add-On Performance
  • Style Guide
  • Useful Links
  • Using Schemas
  • Version Control
  • Q&A
    • Blocks and Items Q&A 2024/08/30
    • Deferred Technical Preview Q&A 2024/02/23
    • GameTest Q&A 2021/08/06
    • Scripting and Editor Q&A 2023/09/22
    • World Generation Q&A 2024/11/15
NBT
  • General
    • .mcstructure
  • Tutorials
    • Experiments in Education Edition
    • Extending Structure Limits
  • NBT in Depth
    • About NBT (Named Binary Tag)
    • NBT Libraries
    • Reading NBT Example
Particles
  • General
    • Intro to Particles
      guide
  • Tutorials
    • Disabling Particles
  • Documentation
    • Vanilla Particles
Scripting
  • General
    • Intro to Scripting
    • What is Script API?
    • API Modules
  • Tutorials
    • Block Placement Prevention
    • GameTests
    • Script Core Features
    • Script Forms
    • Script Requests API
    • Simple Chat Commands
  • Documentation
    • Engine Environment
    • Script Resources
    • Script Watchdog
    • Troubleshooting JavaScript
    • TypeScript
Servers
  • Software
    • Bedrock Server Software
  • Protocols
    • Bedrock Protocol
    • NetherNet Protocol
    • RakNet Protocol
Visuals
  • General
    • Introduction to Entity Visuals
      guide
    • Bedrock Modeling
    • Custom Death Animations
    • Effects in Animations
    • Material Creations
    • Materials
    • Math-Based Animations
    • Skin Packs
  • Tutorials
    • Entity Texture Animation
    • Glowing Entity Texture
    • Hurt Animations
    • Leash Position
    • Player Geometry
    • Remove Entity Shadows
    • Retexturing Spawn Eggs
  • Ideas
    • Structure Presentation
World Generation
  • General
    • Intro to World Generation
      guide
    • Biomes
      guide
    • Feature Types
  • Tutorials
    • Block Conditions for Features
    • Generating Custom Ores
    • Generating Custom Structures
    • Generating Patches
    • Heightmap Noise
  • Documentation
    • Biome Tags

Text and Localization

Text and Localization
  • Language Files
    • File Location
    • Format
    • Usage
  • Localization
    • Custom Languages
    • Tools
    • Vanilla Languages

Minecraft is a game with fully localized text in languages all over the world. To achieve this, Minecraft employs a system where internal translation keys are assigned values on a per-language basis. Minecraft will generate translation keys for custom entities, items, and blocks, and it is up to us to assign them a localized name in our resource pack.

Language Files ​

File Location ​

Language files typically go within the resource pack in the "texts" folder as files with the .lang file extension. These files can be placed in the behavior pack, but the only translatable text it can change is the pack manifest's name and description.

      • 🈵en_US.lang
      • 📝languages.json
    • 📝manifest.json

Minecraft supports 29 languages currently, as described in § Vanilla Languages.

Format ​

The format for a language file is rather straightforward. Translations are supplied as key-value pairs separated by an equals sign (=), the key being a translation key and the value being a string. Values cannot contain newline characters.

lang
wiki.example_translation.line_1=The first line!
wiki.example_translation.line_2=Some more information following the first line.
1
2

Comments may be added with two pound signs (##), either as line comments or in-line comments. All text after the pound signs are a comment until the next line.

WARNING

Trailing spaces are not trimmed for in-line comments. If you want to indent a comment, use the Tab character.

lang
## Translator note: I thought this would be funny to put here.
item.flint_and_steel.name=Flint and Steve	##[sic]
1
2

A translation can contain substitutions in place of text. Substitutions can either be ordered (%1, %2, etc.) or not ordered (%s). Vanilla translations have their values filled in by the game, while players can manually set the substitutions' values with commands that use the raw JSON text format, like with /tellraw.

lang
commands.op.success=Opped: %s
immersive_reader.book_page_header=Page %1 of %2
1
2

Usage ​

Localization can be done just about anywhere text can be used, including (but not limited to):

  • Pack name and description
  • Entity, item, or block names
  • Pages in a book
  • Lines on a sign
  • /tellraw and /titleraw commands
  • Text in dialogue

Some text cannot be translated however, such as for an item renamed in an anvil.

Localization ​

TIP

It is good practice create a copy of your language file for each major language your pack supports. For example, to support full English one should create both an en_US.lang and an en_GB.lang file, to cover English in both the United States and Great Britain countries, respectively.

When editing language files one must also add a languages.json file in the texts folder containing an array with each of the languages you plan to change. This lets Minecraft know that it should apply localization for these languages.

RP/texts/languages.json
json
["en_US", "en_GB", "fr_FR"]
1

Custom Languages ​

With a global resource pack, custom languages may be introduced through the languages.json and language_names.json files. Once the pack is applied globally the language can be changed in the "Language" tab of the in-game settings.

For the following examples, lets assume that we have 2 fully functional language files, one named xx_XX.lang, and another named yy_YY.lang.

RP/texts/languages.json
json
["xx_XX", "yy_YY"]
1

language_names.json is an array as well, but this time to define the names to display for the languages.

RP/texts/language_names.json
json
[
    ["xx_XX", "New Language (Custom Language #1)"],
    ["yy_YY", "Wiki-Speak (Custom Language #2)"]
]
1
2
3
4

WARNING

Whenever using a custom language, make sure to unequip the language before you disable the Resource Pack which it is stored in, or else Minecraft will crash.

Tools ​

If Microsoft are localizing your .lang file there are specific technical requirements that your .lang must follow.

  • Ensure <tab># before comments (not spaces).
  • Ensure line breaks are the Windows style (CR+LF), not Unix style.
  • Must not contain duplicate keys.
  • Strings must be commented to ease translation.

You can use the free browser-based LangUtil tool to assist with this.

Vanilla Languages ​

The following is a table of the 29 languages Minecraft supports by default.

File IDLanguageCountry
id_IDIndonesianIndonesia
da_DKDanishDenmark
de_DEGermanGermany
en_GBEnglishGreat Britain
en_USEnglishNorth America
es_ESSpanishSpain
es_MXMexican SpanishMexico
fr_CACanadian FrenchCanada
fr_FRFrenchFrance
it_ITItalianItaly
hu_HUHungarianHungary
nl_NLDutchNetherlands
nb_NOBokmålNorway
pl_PLPolishPoland
pt_BRBrazilian PortugueseBrazil
pt_PTPortuguesePortugal
sk_SKSlovakSlovakia
fi_FIFinnishFinland
sv_SESwedishSweden
tr_TRTurkishTurkey
cs_CZCzechCzech Republic
el_GRGreekGreece
bg_BGBulgarianBulgaria
ru_RURussianRussia
uk_UAUkrainianUkraine
ja_JPJapaneseJapan
zh_CNChinese (Simplified)China
zh_TWChinese (Traditional)Taiwan
ko_KRKoreanKorea

Contributors

Edit Text and Localization on GitHub

Bedrock Wiki by Bedrock OSS

"Minecraft" is a trademark of Mojang AB.

Bedrock OSS, Bedrock Wiki and bedrock.dev are not affiliated in any way with Microsoft or Mojang AB.

  • Privacy Policy
  • Join our Discord
  • Learn how to Contribute
  • Visit our Repository