Lab 1.1: Workspace Setup & File Integrity
Configure your editing workspace, create and manage plain-text localization assets across a nested directory tree in Visual Studio Code, and verify that file extensions and relative paths remain intact without accidental OS corruption (.json.txt).
Objective
In this hands-on lab, you will configure your editing workspace, create and manage plain-text localization assets across a nested directory tree in Visual Studio Code, and verify that file extensions and relative paths remain intact without accidental OS corruption (.json.txt).
Required Setup & Prerequisites
Editor: Visual Studio Code installed.
OS Setting: Filename extensions toggled ON in your system settings.
Working Directory: Create an empty folder on your desktop named
loc_lab_1-1.
Step-by-Step Instructions
Step 1: Open the Working Directory in VS Code
Launch Visual Studio Code.
Open your newly created folder:
macOS: Press
Cmd + O(orFile > Open Folder...) and selectloc_lab_1-1.Windows: Press
Ctrl + KthenCtrl + O(orFile > Open Folder...) and selectloc_lab_1-1.
Verify that the Explorer Panel on the left displays
LOC_LAB_1-1as the active root directory.
Step 2: Build the Directory Tree Structure
In the VS Code Explorer panel, hover over
LOC_LAB_1-1and click the New Folder icon.Create the following folder structure:
- loc_lab_1-1/
- assets/
- loc/
- software/
- games/
- media/
Step 3: Create Plain-Text Localization Assets
Software UI Asset:
Right-click
softwarefolder New File.Name:
ui_en-US.jsonPaste content:
json{ "btn_save": "Save Changes", "btn_cancel": "Cancel" }
Game Localization Asset:
Right-click
gamesfolder New File.Name:
dialogue_en.csvPaste content:
key,character,text dlg_001,Hero,"Welcome to the kingdom!" dlg_002,NPC,"Watch your step."
Linear Media Subtitle Asset:
Right-click
mediafolder New File.Name:
captions_en.vttPaste content:
WEBVTT 00:00:01.000 --> 00:00:04.000 Welcome to the global localization program.
Step 4: Safely Rename Assets Without Appending .txt
In the Explorer panel under
assets/loc/software/, right-clickui_en-US.jsonand select Rename (or pressF2).Change the filename to
ui_strings_en-US.json.Ensure the
.jsonextension is explicitly preserved and that no secondary extension (such as.json.txt) is appended.
Step 5: Verify File Extensions and Relative Pathways
Select
ui_strings_en-US.jsonin the Explorer panel.Open the Command Palette (
Cmd + Shift + Pon macOS /Ctrl + Shift + Pon Windows).Type
Copy Relative Pathand pressEnter.The relative path copied to your clipboard should match exactly:
assets/loc/software/ui_strings_en-US.json.
Self-Verification Checklist
Filename extensions are explicitly visible for every file in the VS Code Explorer.
No files contain doubled extensions (e.g.,
ui_strings_en-US.json.txt).The relative folder hierarchy strictly follows
assets/loc/[vertical]/[file].All three assets contain clean plain-text data without rich-text formatting.
Resources
Ready to move on?
Mark this lesson complete when you’re ready.