Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LangEN = map[string]string{
"alpha": "The :attribute must only contain letters.",
"alphanum": "The :attribute must only contain letters and numbers.",
"alphanumunicode": "The :attribute must only contain letters, numbers, dashes and underscores.",
"alphaunicode": "The :attribute must only contain letters and unicode.",
"boolean": "The :attribute field must be true or false.",
"date": "The :attribute does not match the format :values.",
"email": "The :attribute must be a valid email address.",
"file": "The :attribute must be a file.",
"gt": "The :attribute must be greater than :value.",
"gte": "The :attribute must be greater than or equal to :value.",
"ip": "The :attribute must be a valid IP address.",
"ipv4": "The :attribute must be a valid IPv4 address.",
"ipv6": "The :attribute must be a valid IPv6 address.",
"json": "The :attribute must be a valid JSON string.",
"lt": "The :attribute must be less than :value.",
"lte": "The :attribute must be less than or equal to :value.",
"len": "The :attribute must not be greater than :param characters.",
"mac": "The :attribute must be a valid MAC address.",
"max": "The :attribute must not be greater than :param.",
"min": "The :attribute must be at least :param.",
"numeric": "The :attribute must be a number.",
"required": "The :attribute field is required.",
"required_if": "The :attribute field is required when :other is :value.",
"required_unless": "The :attribute field is required unless :other is in :values.",
"required_with": "The :attribute field is required when :values is present.",
"required_with_all": "The :attribute field is required when :values are present.",
"required_without": "The :attribute field is required when :values is not present.",
"required_without_all": "The :attribute field is required when none of :values are present.",
"unique": "The :attribute has already been taken.",
"url": "The :attribute must be a valid URL.",
"uuid": "The :attribute must be a valid UUID.",
}
View Source
var LangID = map[string]string{
"alpha": ":attribute hanya boleh berisi huruf.",
"alphanum": ":attribute hanya boleh berisi huruf dan angka.",
"alphanumunicode": ":attribute hanya boleh berisi huruf, angka, strip, dan garis bawah.",
"alphaunicode": ":attribute hanya boleh berisi huruf dan unicode",
"boolean": ":attribute harus bernilai true atau false",
"date": ":attribute bukan tanggal yang valid. format yang valid adalah :values",
"email": ":attribute harus berupa alamat surel yang valid.",
"file": ":attribute harus berupa sebuah berkas.",
"gt": ":attribute harus bernilai lebih besar dari :value.",
"gte": ":attribute harus bernilai lebih besar dari atau sama dengan :value.",
"ip": ":attribute harus berupa alamat IP yang valid.",
"ipv4": ":attribute harus berupa alamat IPv4 yang valid.",
"ipv6": ":attribute harus berupa alamat IPv6 yang valid.",
"json": ":attribute harus berupa JSON string yang valid.",
"lt": ":attribute harus bernilai kurang dari :value.",
"lte": ":attribute harus bernilai kurang dari atau sama dengan :value.",
"len": ":attribute harus berjumlah :param characters.",
"mac": ":attribute harus berupa MAC address yang valid.",
"max": ":attribute maksimal bernilai :param.",
"min": ":attribute minimal berisi :values karakter.",
"numeric": ":attribute harus berupa angka.",
"required": ":attribute wajib diisi.",
"required_if": ":attribute wajib diisi bila :other adalah :value.",
"required_unless": ":attribute wajib diisi kecuali :other memiliki nilai :values.",
"required_with": ":attribute wajib diisi bila terdapat :values.",
"required_with_all": ":attribute wajib diisi bila terdapat :values.",
"required_without": ":attribute wajib diisi bila :values Kosong",
"required_without_all": ":attribute wajib diisi bila :values Kosong Semua.",
"unique": ":attribute sudah ada sebelumnya.",
"url": "Format :attribute tidak valid.",
"uuid": ":attribute harus merupakan UUID yang valid.",
}
View Source
var LangMessage = map[string]string{}
View Source
var StubStorage = map[string]func(){ "ID": ID, "EN": EN, }
Functions ¶
func NewLanguage ¶
func NewLanguage(name string) *language
Types ¶
Click to show internal directories.
Click to hide internal directories.