如何在 i18napis 中使用地址格式?
How do I use the Address formats in i18napis?
我正在尝试为 React 应用程序使用 i18napis.appspot.com/address 地址格式,以便我可以创建本地化的地址表单,但我不清楚如何使用它。
例如,this is the info for Germany:
{
zipex: "26133,53225",
key: "DE",
zip: "\d{5}",
fmt: "%N%n%O%n%A%n%Z %C",
id: "data/DE",
posturl: "http://www.postdirekt.de/plzserver/",
require: "ACZ",
name: "GERMANY"
}
zip
是一个非常简单的正则表达式,但我如何使用 fmt: "%N%n%O%n%A%n%Z %C"
格式?在这种情况下,N
O
A
Z
和 C
是什么?
根据 Google 的 libaddressinput
文档,
N - 姓名
O - 组织
A - 街道地址行
Z - 邮政编码
C - 城市或地区
我正在尝试为 React 应用程序使用 i18napis.appspot.com/address 地址格式,以便我可以创建本地化的地址表单,但我不清楚如何使用它。 例如,this is the info for Germany:
{
zipex: "26133,53225",
key: "DE",
zip: "\d{5}",
fmt: "%N%n%O%n%A%n%Z %C",
id: "data/DE",
posturl: "http://www.postdirekt.de/plzserver/",
require: "ACZ",
name: "GERMANY"
}
zip
是一个非常简单的正则表达式,但我如何使用 fmt: "%N%n%O%n%A%n%Z %C"
格式?在这种情况下,N
O
A
Z
和 C
是什么?
根据 Google 的 libaddressinput
文档,
N - 姓名
O - 组织
A - 街道地址行
Z - 邮政编码
C - 城市或地区