diff --git a/aws-sam/gggtracker.cfn.yaml b/aws-sam/gggtracker.cfn.yaml index 2001a87..b6bf81a 100644 --- a/aws-sam/gggtracker.cfn.yaml +++ b/aws-sam/gggtracker.cfn.yaml @@ -89,6 +89,13 @@ Resources: DomainName: !Sub www.${DomainName} RestApiId: !Ref API Stage: !Ref APIStage + APIBasePathMappingSubdomain8: + Type: AWS::ApiGateway::BasePathMapping + DependsOn: APISubdomainName8 + Properties: + DomainName: !Sub jp.${DomainName} + RestApiId: !Ref API + Stage: !Ref APIStage APICloudWatchRole: Type: AWS::IAM::Role Properties: @@ -165,6 +172,14 @@ Resources: EndpointConfiguration: Types: - EDGE + APISubdomainName8: + Type: AWS::ApiGateway::DomainName + Properties: + CertificateArn: !Ref CertificateARN + DomainName: !Sub jp.${DomainName} + EndpointConfiguration: + Types: + - EDGE APIProxyResource: Type: AWS::ApiGateway::Resource Properties: diff --git a/server/localization.go b/server/localization.go index d558f98..f09210e 100644 --- a/server/localization.go +++ b/server/localization.go @@ -155,6 +155,17 @@ var Locales = []*Locale{ "Forum": "Foro", }, }, + { + Subdomain: "jp", + Image: "static/images/locales/jp.png", + Translations: map[string]string{ + "Activity": "アクティビティ", + "Thread": "スレッド", + "Poster": "投稿者", + "Time": "日時", + "Forum": "フォーラム", + }, + }, } func LocaleForRequest(r *http.Request) *Locale { diff --git a/server/static/images/locales/jp.png b/server/static/images/locales/jp.png new file mode 100644 index 0000000..a432ef8 Binary files /dev/null and b/server/static/images/locales/jp.png differ