배우기
엔진 클래스
LocalizationTable

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.


요약
속성
DevelopmentLanguage:string
사용되지 않음
Root:Instance
사용되지 않음
메서드
GetContents():string
사용되지 않음
GetString(targetLocaleId: string,key: string):string
사용되지 않음
RemoveEntry(key: string,source: string,context: string):()
RemoveEntryValue(key: string,source: string,context: string,localeId: string):()
RemoveKey(key: string):()
사용되지 않음
SetContents(contents: string):()
사용되지 않음
SetEntries(entries: Variant):()
SetEntry(key: string,targetLocaleId: string,text: string):()
사용되지 않음
SetEntryContext(key: string,source: string,context: string,newContext: string):()
SetEntryExample(key: string,source: string,context: string,example: string):()
SetEntryKey(key: string,source: string,context: string,newKey: string):()
SetEntrySource(key: string,source: string,context: string,newSource: string):()
SetEntryValue(key: string,source: string,context: string,localeId: string,text: string):()
상속된 멤버
코드 샘플
현지화 테이블
local LocalizationService = game:GetService("LocalizationService")
local function createLocalizationTable(entries): LocalizationTable
local localTable = Instance.new("LocalizationTable")
localTable.SourceLocaleId = LocalizationService.SystemLocaleId
localTable:SetEntries(entries)
return localTable
end
local entries = {
{
Key = "Hello_World", -- GetString 함수에서 사용할 'expressionKey'
Values = { -- IETF 언어 태그에 해당하는 키의 사전과 그 번역.
["ru"] = " !", -- 러시아어
["fr"] = "Bonjour le monde!", -- 프랑스어
["de"] = "Hallo Welt!", -- 독일어
["en-US"] = "Hello world!", -- 영어
["it"] = "Ciao mondo!", -- 이탈리아어
["pt-BR"] = "Ol Mundo!", -- 포르투갈어
["ja"] = "", -- 일본어
["es"] = "Hola Mundo!", -- 스페인어
},
},
}
local helloWorldTable = createLocalizationTable(entries)
local translatorEnglish = helloWorldTable:GetTranslator("en-US")
print(translatorEnglish:FormatByKey("Hello_World"))

API 참조
속성
DevelopmentLanguage
사용되지 않음

Root
사용되지 않음

SourceLocaleId
병렬 읽기
기능: Basic
LocalizationTable.SourceLocaleId:string

메서드
GetContents
사용되지 않음

GetEntries
기능: Basic
LocalizationTable:GetEntries():{any}
반환
코드 샘플
로컬라이제이션 테이블 사용하기
local LocalizationService = game:GetService("LocalizationService")
local localizationTable = LocalizationService:FindFirstChild("LocalizationTable")
local entries = {
{
["Key"] = "0001",
["Source"] = "en-us",
["Values"] = {
["0001"] = "안녕하세요, 마더. 안녕하세요, 파더.",
["0002"] = "그란다 캠프에 오신 것을 환영합니다.",
["0003"] = "캠프는 매우 재미있습니다.",
["0004"] = "비가 그치면 재미있을 것이라고 합니다.",
},
},
}
localizationTable:SetEntries(entries)
local get_results = localizationTable:GetEntries()
for _index, dict in pairs(get_results) do
for _key, value in pairs(dict["Values"]) do -- 사전의 모든 키, 값 쌍을 반복하여 문자열을 출력합니다.
print(value)
end
end

GetString
사용되지 않음

GetTranslator
기능: Basic
LocalizationTable:GetTranslator(localeId:string):Instance
매개 변수
localeId:string
반환

RemoveEntry
기능: Basic
LocalizationTable:RemoveEntry(
key:string, source:string, context:string
):()
매개 변수
key:string
source:string
context:string
반환
()

RemoveEntryValue
기능: Basic
LocalizationTable:RemoveEntryValue(
key:string, source:string, context:string, localeId:string
):()
매개 변수
key:string
source:string
context:string
localeId:string
반환
()

RemoveKey
사용되지 않음

RemoveTargetLocale
기능: Basic
LocalizationTable:RemoveTargetLocale(localeId:string):()
매개 변수
localeId:string
반환
()

SetContents
사용되지 않음

SetEntries
기능: Basic
LocalizationTable:SetEntries(entries:Variant):()
매개 변수
entries:Variant
반환
()

SetEntry
사용되지 않음

SetEntryContext
기능: Basic
LocalizationTable:SetEntryContext(
key:string, source:string, context:string, newContext:string
):()
매개 변수
key:string
source:string
context:string
newContext:string
반환
()

SetEntryExample
기능: Basic
LocalizationTable:SetEntryExample(
key:string, source:string, context:string, example:string
):()
매개 변수
key:string
source:string
context:string
example:string
반환
()

SetEntryKey
기능: Basic
LocalizationTable:SetEntryKey(
key:string, source:string, context:string, newKey:string
):()
매개 변수
key:string
source:string
context:string
newKey:string
반환
()

SetEntrySource
기능: Basic
LocalizationTable:SetEntrySource(
key:string, source:string, context:string, newSource:string
):()
매개 변수
key:string
source:string
context:string
newSource:string
반환
()

SetEntryValue
기능: Basic
LocalizationTable:SetEntryValue(
key:string, source:string, context:string, localeId:string, text:string
):()
매개 변수
key:string
source:string
context:string
localeId:string
text:string
반환
()

©2026 Roblox Corporation. Roblox 및 Roblox 로고, 'Powering Imagination'은 미국 및 기타 국가 내 당사의 등록 및 미등록 상표입니다.