Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions aws-sam/gggtracker.cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions server/localization.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Binary file added server/static/images/locales/jp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.